Exemplo n.º 1
0
        private void MyForm_notifiedMe_aboutNext(eFlowformFormEvents SomeEvent_)
        {
            switch (SomeEvent_)
            {
            case eFlowformFormEvents.Next:
                // ToDos: here!



                MyProcess.Undefined_orAll = MyForm.Undefined_orAll;
                #region ((cFlowform)MyFlowforms[0]).Show();
                if (MyFlowforms[0] == null)
                {
                    MyFlowforms[0] = new cManage_Views_PK_s010(
                        Base_ref,
                        new cFlowform.dNotifyBase(MyFlowforms_notifiedMe),
                        MyProcess
                        );
                }
                MyForm.Hide();
                MyFlowforms[0].Show();
                #endregion



                break;
            }
        }
Exemplo n.º 2
0
        //#endregion
        #region public Properties...
        #endregion

        //#region private Methods...
        public void LetMeKnowWhen_NoMoreUndefinedViews(eFlowformEvents SomeEvent_, cFlowform Flowform_)
        {
            Manage_Views_PK_s010.Hide();
            Manage_Views_PK_s010.Dispose(); Manage_Views_PK_s010 = null;

            this.Show();
        }
Exemplo n.º 3
0
		private void MyForm_notifiedMe_aboutNext(eFlowformFormEvents SomeEvent_) {
			switch (SomeEvent_) {
				case eFlowformFormEvents.Next:
					// ToDos: here!



					MyProcess.Undefined_orAll = MyForm.Undefined_orAll;
					#region ((cFlowform)MyFlowforms[0]).Show();
					if (MyFlowforms[0] == null) {
						MyFlowforms[0] = new cManage_Views_PK_s010(
							Base_ref, 
							new cFlowform.dNotifyBase(MyFlowforms_notifiedMe), 
							MyProcess
						);
					}
					MyForm.Hide();
					MyFlowforms[0].Show();
					#endregion



					break;
			}
		}
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;
                }
            }
        }
Exemplo n.º 5
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.º 6
0
		//#endregion
		#region public Properties...
		#endregion

		//#region private Methods...
		public void LetMeKnowWhen_NoMoreUndefinedViews(eFlowformEvents SomeEvent_, cFlowform Flowform_) {
			Manage_Views_PK_s010.Hide();
			Manage_Views_PK_s010.Dispose(); Manage_Views_PK_s010 = null;

			this.Show();
		}