private void btnSelectView_Click(object sender, EventArgs e)
        {
            using (FindViewForm findView = new FindViewForm())
            {
                findView.FrontendApplication = FrontendApplication;
                findView.BackendApplication  = BackendApplication;

                if (findView.ShowDialog() == DialogResult.OK)
                {
                    if (MessageBox.Show("Do you want to create a copy of the selected view?\r\nNOTE - Only the layout will be copied.", "Copy View",
                                        MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
                    {
                        try
                        {
                            Cursor       = Cursors.WaitCursor;
                            SelectedView = MetaManagerServices.Helpers.ViewHelper.CopyView(findView.View);
                        }
                        finally
                        {
                            Cursor = Cursors.Default;
                        }
                    }
                    else
                    {
                        SelectedView = findView.View;
                    }

                    PopulateViewFields();
                    EnableDisableButtons();
                }
            }
        }
Beispiel #2
0
        private void btnSelectView_Click(object sender, EventArgs e)
        {
            using (FindViewForm findView = new FindViewForm())
            {
                findView.FrontendApplication = FrontendApplication;
                findView.BackendApplication  = BackendApplication;

                if (findView.ShowDialog() == DialogResult.OK)
                {
                    SelectedView = findView.View;
                    PopulateViewFields();
                    CheckEnableDisableOK();
                }
            }
        }