Ejemplo n.º 1
0
 public static CtrlSettings GetSettings(Form form)
 {
     Lewis.SST.Settings.CtrlSettings cs = null;
     if (form != null)
     {
         try
         {
             cs = new Lewis.SST.Settings.CtrlSettings(form.GetType().ToString());
             if (typeof(Lewis.SST.Gui.Main).IsInstanceOfType(form))
             {
                 cs.LastDirectory = ((Lewis.SST.Gui.Main)form).LastDirectory;
             }
             cs.Name     = form.Name;
             cs.Location = form.Location;
             cs.Size     = form.Size;
             ArrayList arl = WalkControls(form.Controls);
             if (arl != null && arl.Count > 0)
             {
                 cs.ChildCtrlsToPersist = (Lewis.SST.Settings.CtrlSettings[])arl.ToArray(typeof(Lewis.SST.Settings.CtrlSettings));
             }
         }
         catch (Exception ex)
         {
             logger.Error(SQLSchemaTool.ERRORFORMAT, ex.Message, ex.Source, ex.StackTrace);
         }
     }
     return(cs);
 }
Ejemplo n.º 2
0
 public static CtrlSettings GetSettings(Form form)
 {
     Lewis.SST.Settings.CtrlSettings cs = null;
     if (form != null)
     {
         try
         {
             cs = new Lewis.SST.Settings.CtrlSettings(form.GetType().ToString());
             if (typeof(Lewis.SST.Gui.Main).IsInstanceOfType(form))
             {
                 cs.LastDirectory = ((Lewis.SST.Gui.Main)form).LastDirectory;
             }
             cs.Name = form.Name;
             cs.Location = form.Location;
             cs.Size = form.Size;
             ArrayList arl = WalkControls(form.Controls);
             if (arl != null && arl.Count > 0)
             {
                 cs.ChildCtrlsToPersist = (Lewis.SST.Settings.CtrlSettings[])arl.ToArray(typeof(Lewis.SST.Settings.CtrlSettings));
             }
         }
         catch (Exception ex)
         {
             logger.Error(SQLSchemaTool.ERRORFORMAT, ex.Message, ex.Source, ex.StackTrace);
         }
     }
     return cs;
 }
Ejemplo n.º 3
0
 public static CtrlSettings GetSettings(optionsFormProperties ofp)
 {
     Lewis.SST.Settings.CtrlSettings cs = new Lewis.SST.Settings.CtrlSettings(typeof(optionsFormProperties).ToString());
     if (ofp != null)
     {
         try
         {
             cs.Name     = ofp.Name;
             cs.Location = ofp.Location;
             cs.Size     = ofp.Size;
         }
         catch (Exception ex)
         {
             logger.Error(SQLSchemaTool.ERRORFORMAT, ex.Message, ex.Source, ex.StackTrace);
         }
     }
     return(cs);
 }
Ejemplo n.º 4
0
 public static CtrlSettings GetSettings(optionsFormProperties ofp)
 {
     Lewis.SST.Settings.CtrlSettings cs = new Lewis.SST.Settings.CtrlSettings(typeof(optionsFormProperties).ToString());
     if (ofp != null)
     {
         try
         {
             cs.Name = ofp.Name;
             cs.Location = ofp.Location;
             cs.Size = ofp.Size;
         }
         catch (Exception ex)
         {
             logger.Error(SQLSchemaTool.ERRORFORMAT, ex.Message, ex.Source, ex.StackTrace);
         }
         
     }
     return cs;
 }