Exemplo n.º 1
0
        public cManage_Views_PK_s020(
            frm_Main Base_ref_,
            dNotifyBase NotifyBase_,
            PO_Manage_Views_PK MyProcess_
            ) : base(
                NotifyBase_,
                1
                )
        {
            Base_ref = Base_ref_;

            MyForm = new frmManage_Views_PK_s020(
                new cFlowformForm.dNotifyBase(
                    MyForm_notifiedMe
                    ),
                new cFlowformForm.dNotifyBase(
                    MyForm_notifiedMe_aboutNext
                    )
                );
            MyForm.MdiParent = Base_ref;
            //MyForm.MaximizeBox = false;
            //MyForm_ref = MyForm;

            MyProcess = MyProcess_;
        }
Exemplo n.º 2
0
        //#endregion
        //#region public Methods...
        public override void Show()
        {
            MyForm.pReflection = frm_Main.ntierproject.Metadata.PseudoReflectionable;
            if (frm_Main.ntierproject.Metadata.Tables.hasVirtualTable_withUndefinedKeys())
            {
                switch (System.Windows.Forms.MessageBox.Show(
                            "View's PK must be defined, prior to Generate",
                            "Warning",
                            System.Windows.Forms.MessageBoxButtons.OKCancel,
                            System.Windows.Forms.MessageBoxIcon.Warning
                            ))
                {
                case System.Windows.Forms.DialogResult.OK:
                    PO_Manage_Views_PK manage_views_pk = new PO_Manage_Views_PK(Base_ref);
                    manage_views_pk.Undefined_orAll = true;

                    Manage_Views_PK_s010 = new cManage_Views_PK_s010(
                        Base_ref,
                        new cFlowform.dNotifyBase(LetMeKnowWhen_NoMoreUndefinedViews),
                        manage_views_pk
                        );
                    Manage_Views_PK_s010.Show();

                    break;

                case System.Windows.Forms.DialogResult.Cancel:
                    NotifyBase(eFlowformEvents.Closed, this);
                    break;
                }
            }
            else
            {
                base.Show();
                switch (Base_ref.ProjectSave(true, true, false))
                {
                case System.Windows.Forms.DialogResult.OK:
                    break;

                case System.Windows.Forms.DialogResult.Cancel:
                    NotifyBase(eFlowformEvents.Closed, this);
                    break;
                }
            }
        }
Exemplo n.º 3
0
		public cManage_Views_PK_s000(
			frm_Main Base_ref_, 
			dNotifyBase NotifyBase_
		) : base (
			NotifyBase_, 
			1
		) {
			Base_ref = Base_ref_;

			MyForm = new frmManage_Views_PK_s000(
				new cFlowformForm.dNotifyBase(
					MyForm_notifiedMe
				),
				new cFlowformForm.dNotifyBase(
					MyForm_notifiedMe_aboutNext
				)
			);
			MyForm.MdiParent = Base_ref;
			//MyForm.MaximizeBox = false;
			//MyForm_ref = MyForm;

			MyProcess = new PO_Manage_Views_PK(Base_ref);
		}
Exemplo n.º 4
0
		//#endregion
		//#region public Methods...
		public override void Show() {
			MyForm.pReflection = frm_Main.ntierproject.Metadata.PseudoReflectionable;
			if (frm_Main.ntierproject.Metadata.Tables.hasVirtualTable_withUndefinedKeys()) {
				switch (System.Windows.Forms.MessageBox.Show(
					"View's PK must be defined, prior to Generate", 
					"Warning", 
					System.Windows.Forms.MessageBoxButtons.OKCancel, 
					System.Windows.Forms.MessageBoxIcon.Warning
				)) {
					case System.Windows.Forms.DialogResult.OK:
						PO_Manage_Views_PK manage_views_pk = new PO_Manage_Views_PK(Base_ref);
						manage_views_pk.Undefined_orAll = true;

						Manage_Views_PK_s010 = new cManage_Views_PK_s010(
							Base_ref, 
							new cFlowform.dNotifyBase(LetMeKnowWhen_NoMoreUndefinedViews), 
							manage_views_pk
						);
						Manage_Views_PK_s010.Show();

						break;
					case System.Windows.Forms.DialogResult.Cancel:
						NotifyBase(eFlowformEvents.Closed, this);
						break;
				}
			} else {
				base.Show();
				switch (Base_ref.ProjectSave(true, true, false)) {
					case System.Windows.Forms.DialogResult.OK:
						break;
					case System.Windows.Forms.DialogResult.Cancel:
						NotifyBase(eFlowformEvents.Closed, this);
						break;
				}
			}
		}