Пример #1
0
 void NewVolumeWizardLoad(object sender, EventArgs e1)
 {
     if (!existingVolume)
     {
         WelcomePage wp = new WelcomePage();
         ShowContent(wp);
         panel1.Controls.Find("nextBtn", true)[0].Click += (s,e)=> OnNextPage1Click(sender, e1, wp);
     }
     else
     {
         VolumeLocation vlp = new VolumeLocation(VolumeName, Password, VolumeVersion);
         ShowContent(vlp);
         panel1.Controls.Find("finishBtn", true)[0].Click += (s,e)=> OnNextPage2Click(sender, e1, vlp);
         panel1.Controls.Find("button2", true)[0].Visible = false;
         panel1.Controls.Find("label2", true)[0].Visible = false;
     }
 }
Пример #2
0
 void OnNextPage1Click(object sender, EventArgs e1, WelcomePage wp)
 {
     VolumeName = wp.VolumeName;
     Password = wp.Password;
     VolumeVersion = wp.VolumeVersion;
     VolumeLocation vlp = new VolumeLocation(VolumeName, Password, VolumeVersion);
     ShowContent(vlp);
     panel1.Controls.Find("finishBtn", true)[0].Click += (s,e)=> OnNextPage2Click(sender, e1, vlp);
 }