Exemple #1
0
        public static string SelectDiagramToOpen()
        {
            var selector = new DiagramOpenDialog()
            {
                Text = "Choose a diagram to open"
            };

            return(ShowDialogCore(selector));
        }
Exemple #2
0
 protected static string ShowDialogCore(DiagramOpenDialog dialog)
 {
     dialog.ShowDialog();
     return(dialog.DialogResult == DialogResult.OK ? dialog.SelectedItem : null);
 }