示例#1
0
 public void rePresetFile()
 {
     if (AppName.Equals("Window") && !windowCheck)
     {
         Console.WriteLine("윈도우고 체크 활성아니니 실행");
         windowCheck = true;
     }
     else if (!AppName.Equals("window"))
     {
         Console.WriteLine("윈도우아니니 체크 비활성");
         windowCheck = false;
     }
     for (int i = 0; i < Payloads.Length; i++)
     {
         Payloads[i] = new DeviceData.Payload();
     }
     render.initUI();
     render.closeList();
     render.listValueInit();
     preset.getPresetFiles();
     this.CurrentGroup = 0;
     render.updateUI();
     render.resetImage(AppName);
     Console.WriteLine("변경된 그룹: " + this.CurrentGroup);
     this.groupChage = false;
     notice(this.AppName + " " + this.PresetName + " 프리셋으로 셋팅됨");
     Console.WriteLine("-----스레드 끝-----");
 }
示例#2
0
 public MainForm()
 {
     Console.WriteLine(currentCulture.Name);
     InitializeComponent();
     for (int i = 0; i < payloads.Length; i++)
     {
         payloads[i] = new DeviceData.Payload();
     }
     this.customScrollbar1.Minimum     = 0;
     this.customScrollbar1.Maximum     = this.deviceList.DisplayRectangle.Height;
     this.customScrollbar1.LargeChange = customScrollbar1.Maximum / customScrollbar1.Height + this.deviceList.Height;
     this.customScrollbar1.SmallChange = 15;
     this.customScrollbar1.Value       = Math.Abs(this.deviceList.AutoScrollPosition.Y);
     this.OnAddCtrl += new EventHandlerAddCtrl(rePresetFile);
 }