コード例 #1
0
ファイル: MenuConfigForm.cs プロジェクト: mdgiles/TraceOffice
        private void barButtonComprod_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            CommissionsForm xform1 = new CommissionsForm(_FlexSys)
            {
            };

            xform1.Show();
        }
コード例 #2
0
ファイル: MainMenu.cs プロジェクト: mdgiles/TraceOffice
 private void barButtonComprod_ItemClick(object sender, ItemClickEventArgs e)
 {
     //Tried to use a function which took the type of the form as a parameter and
     //created it using Activator.CreateInstance, but wrapping that in a try/catch
     //does not catch any exception in the form constructor. If you handle it in the
     //constructor, Activator.CreateInstance just says "Exception was thrown by the target
     //of an invocation" and doesn't give the actual exception. Thus the forms have to
     //be created as strongly typed in order to get any exception from
     //the constructor and show it to the user.
     try {
         CommissionsForm xform1 = new CommissionsForm(_FlexSys)
         {
             MdiParent = this
         };
         xform1.Show();
     }
     catch (Exception ex) {
         DisplayError(ex);
     }
 }
コード例 #3
0
        public void Show(FlexInterfaces.Core.ICoreSys sys)
        {
            CommissionsForm xform1 = new CommissionsForm(sys);

            xform1.ShowDialog();
        }