Beispiel #1
0
 public DialogResult MyShowDialog()
 {
     btn_data.Enabled = DefaultFieldValues.ExtensionExists(settings.GetType().Name);
     document         = DefaultDocument;
     lbl_docName.Text = Path.GetFileName(document);
     return(ShowDialog());
 }
        public DialogResult MyShowDialog()
        {
            SIEESettings settings = control.GetSettings();
            Type         t        = settings.GetType();

            return(ShowDialog());
        }
Beispiel #3
0
        public static SIEEFactory GetFromSettings(SIEESettings s)
        {
            string key = s.GetType().Name;

            if (bySettingsType.ContainsKey(key))
            {
                return(bySettingsType[key]);
            }
            return(null);
        }
Beispiel #4
0
 public void LoadDefaults(SIEESettings settings)
 {
     try { SetDefaults(settings.GetType(), this); }
     catch (Exception ex)
     {
         SIEEMessageBox.Show(
             "Cannot set defaults. Reason:\n" + ex.Message,
             "Load default values",
             System.Windows.MessageBoxImage.Error);
     }
 }