Creating a tutorial

M

MySelf

Hello,

I work in C-Sharp on a winform application.

I am creating a tutorial for using some kind of reader. So when the
user click on a button, I first display a small winform A to show text
information. When the user click "Next", I close this window and
display a big one (B) which will show pictures and explanation of
several steps of reader handling (with Next button to change step).
Here is the code I use (when user click "Launch tutorial" button:

// Launch tutorial to explain how to use reader
var wstutorial = new ReaderTutorialWelcomeScreen();
var dr = wstutorial.ShowDialog();

if (dr == DialogResult.OK)
{
var readerTutorial = new ReaderTutorial();
dr= readerTutorial.ShowDialog();
}

wstutorial is window A and readerTutorial is window B.

But now, I'm being asked that when window B show step 1 of
explanations, and if user click Previous button, window B close and
window A show again.

Is there a simple method to change my tutorial so this behaviour can be
implemented ?

Thank you for any help.
 
M

MySelf

// Launch tutorial to explain how to use reader
var wstutorial = new ReaderTutorialWelcomeScreen();
var dr = wstutorial.ShowDialog();

if (dr == DialogResult.OK)
{
var readerTutorial = new ReaderTutorial();
dr= readerTutorial.ShowDialog();
}

wstutorial.ShowDialog() return DialogResult.OK when user click on Next
button.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top