Ejemplo n.º 1
0
 private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e)
 {
     if (e.Page == wizardLisansAnlasmasi)
     {
         string root = @"C:\Msp";
         if (!System.IO.Directory.Exists(root))
         {
             System.IO.Directory.CreateDirectory(root);
         }
         string databasefolder = @"C:\Msp\Database";
         if (!System.IO.Directory.Exists(databasefolder))
         {
             System.IO.Directory.CreateDirectory(databasefolder);
         }
     }
     if (e.Page == pageLisansDemo)
     {
         e.Page.AllowNext = false;
         if (!rpDeneme.Checked || !rpLisans.Checked)
         {
             e.Page.AllowNext = false;
         }
         do_LisansDemo();
     }
     if (e.Page == pageSqlSettings)
     {
         //do_SQLSettings();
     }
     if (e.Page == pageRecordPage)
     {
         do_FirstRecord();
     }
 }
Ejemplo n.º 2
0
        private FrmTaskCheck m_FrmCheck = null;//new FrmTaskCheck(null, null);


        private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e)
        {
            if (e.Page == wpSourceSelect)
            {
                ValidatePath(e);
            }
            else if (e.Page == wpParamterSet)
            {
                ValidatePrimaryArgs(e);
            }
            else if (e.Page == wpTaskSetting)
            {
                ValidateTaskSetting(e);
            }
        }
 private void wizardControlImportUser_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e)
 {
     if (e.Page == wizardPageFileSelection)
     {
         if (pathReloaded)
         {
             model.ParseExcelFileForData();
             if (model.bindingProperty.AllowNext)
             {
                 repositoryItemLookUpEditColumns.DataSource = model.GetExcelDataColumns();
                 model.bindingProperty.ColumnMappings       = model.GetColumnMappings();
                 pathReloaded = false;
             }
             else
             {
                 e.Handled = true;
             }
         }
     }
     else if (e.Page == wizardPageColumnMapping)
     {
         model.bindingProperty.ColumnMappings = gridControlColumnMapping.DataSource as List <IColumnMapping>;
     }
     else if (e.Page == wizardPageDataPreview)
     {
         try
         {
             importSuccessful = model.ImportUsersToDB();
             if (importSuccessful)
             {
                 XtraMessageBox.Show("Users successfuly imported to database.", "User Import Wizard");
                 wizardControlImportUser.SelectedPage = wizardPageFileSelection;
                 e.Handled = true;
             }
         }
         catch (Exception ex)
         {
             XtraMessageBox.Show(ex.Message, "User Import Failed");
         }
     }
 }
Ejemplo n.º 4
0
 private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e)
 {
     if (e.Page.Name == "PChoosePath")
     {
         //if (txtPassZip.Text.Trim() == "")
         //{
         //    MessageBox.Show("Chọn path");
         //    e.Handled = true;
         //}
         //else
         //{
         //    MessageBox.Show("oke");
         //    e.Handled = false;
         //}
     }
     else if (e.Page.Name == "PChooseClient")
     {
         if (checkEdit1.Checked == true)
         {
             wizardControl1.SelectedPage = PFinish;
         }
         // MessageBox.Show("Chọn client");
     }
 }
 private void wizardControl1_PrevClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e)
 {
 }