示例#1
0
 private AppConfig()
 {
     MainFormHeight    = 717;
     MainFormWidth     = 928;
     StartPositionLeft = -1000;
     StartPositionTop  = -1000;
     DateListHeight    = 125;
     IsNotifyClose     = true;
     IsShowDateList    = true;
     ColumnsOrder      = new List <int>(ColumnsCount)
     {
         0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
     };
     ColumnsWidth = new List <int>(ColumnsCount)
     {
         50, 50, 50, 50, 50, 50, 0, 0, 0, 0, 0, 0
     };
     TCPingOptions = new TCPingOptions();
 }
示例#2
0
 public void Load(AppConfig config)
 {
     MainFormHeight    = config.MainFormHeight;
     MainFormWidth     = config.MainFormWidth;
     StartPositionLeft = config.StartPositionLeft;
     StartPositionTop  = config.StartPositionTop;
     DateListHeight    = config.DateListHeight;
     IsNotifyClose     = config.IsNotifyClose;
     IsShowDateList    = config.IsShowDateList;
     for (var i = 0; i < config.ColumnsOrder.Count; ++i)
     {
         ColumnsOrder[i] = config.ColumnsOrder[i];
     }
     for (var i = 0; i < config.ColumnsWidth.Count; ++i)
     {
         ColumnsWidth[i] = config.ColumnsWidth[i];
     }
     TCPingOptions = config.TCPingOptions;
 }