Exemple #1
0
        //#endregion
        #region public Properties...
        #endregion

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

            this.Show();
        }
Exemple #2
0
        //#endregion
        //#region public Methods...
        public override void Show()
        {
//			MyForm.pReflection = frm_Main.ntierproject.Metadata.PseudoReflectionable;
            if (frm_Main.ntierproject.Metadata.MetadataExtendedCollection[0].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(this.Base_ref);
                    manage_views_pk.Undefined_orAll = true;

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

                    break;

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

                case System.Windows.Forms.DialogResult.Cancel:
                    this.NotifyBase(FlowformEvents.Closed, this);
                    break;
                }
            }
        }
		//#endregion
		#region public Properties...
		#endregion

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

			this.Show();
		}
		//#endregion
		//#region public Methods...
		public override void Show() {
//			MyForm.pReflection = frm_Main.ntierproject.Metadata.PseudoReflectionable;
			if (frm_Main.ntierproject.Metadata.MetadataExtendedCollection[0].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(this.Base_ref);
						manage_views_pk.Undefined_orAll = true;

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

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