/// <summary> /// /// </summary> private static bool ExecuteForNewItem(string newFileName, string viewsFolderName) { viewDialog = new AddViewDlg(); viewDialog.FillDialogControls(viewsFolderName); viewDialog.ViewName = newFileName; viewDialog.ViewNameEnabled = false; viewDialog.WriteItemDirectly = false; return(viewDialog.ShowDialog() == DialogResult.OK); }
/// <summary> /// /// </summary> private static bool ExecuteForNewItem(string newFileName, string viewsFolderName) { viewDialog = new AddViewDlg(); viewDialog.FillDialogControls(viewsFolderName); viewDialog.ViewName = newFileName; viewDialog.ViewNameEnabled = false; viewDialog.WriteItemDirectly = false; return (viewDialog.ShowDialog() == DialogResult.OK); }
private static void Execute(object sender, EventArgs e) { viewDialog = new AddViewDlg(); viewDialog.FillDialogControls(); viewDialog.ShowDialog(); }