/// <summary> /// Initialize a new instance of the KryptonManagerActionList class. /// </summary> /// <param name="owner">Designer that owns this action list instance.</param> public KryptonManagerActionList(KryptonManagerDesigner owner) : base(owner.Component) { // Remember the panel instance _manager = owner.Component as KryptonManager; // Cache service used to notify when a property has changed _service = (IComponentChangeService)GetService(typeof(IComponentChangeService)); }
public void LoadTheme() { this.components = new System.ComponentModel.Container(); string ThemeName = Voltage.Properties.Settings.Default.ThemeName.Trim(); if (ThemeName.Trim() == "") { ThemeName = "Office2007Blue"; } this.kryptonManager = new KryptonManager(this.components); try { this.kryptonManager.GlobalPaletteMode = (PaletteModeManager)Enum.Parse(typeof(PaletteModeManager), ThemeName, false); } catch (Exception ex) { this.kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Blue; } }
private void MainForm_Load(object sender, EventArgs e) { this.components = new System.ComponentModel.Container(); this.kryptonManager = new KryptonManager(this.components); //DataSet ds = OleHelper.ExecuteDataset(OleHelper.Conn, CommandType.Text, "select CollectId,DataTime,DataValue from DataTable where CollectId in ('0001','0002') and DataTime>=#2008-12-20 8:00:01# and DataTime<#2008-12-20 8:00:20#"); Program.mainForm.ShowCharting(3, null); //this.LoadSerialMenuItem(); //开启手动打开串口服务 this.StartSerialService(); //打开检测串口服务 this.StartOutPutTimerService();//打开定时导出服务 }