public GStatusBar(StatusBar sb) { _statusBar = sb; _bell = GIcons.GetBellIcon(); _empty = null; BellPanel.Icon = _empty; //Windows.Forms.TimerはStart/Stopを別のスレッドからいじるとだめになってしまうようだ _belltimer = new Timer(); _belltimer.Interval = 500; //_belltimer.AutoReset = false; _belltimer.Tick += new EventHandler(CancelBellIcon); //_belltimer.Elapsed += new ElapsedEventHandler(CancelBellIcon); }
public MacroTraceWindow() { // // Windows フォーム デザイナ サポートに必要です。 // InitializeComponent(); // // this.Icon = GApp.Options.GuevaraMode? GIcons.GetOldGuevaraIcon() : GIcons.GetAppIcon(); //位置とサイズの調整 int n = _instanceCount % 5; this.Location = new Point(GApp.Frame.Left + 30 + 20 * n, GApp.Frame.Top + 30 + 20 * n); if (_instanceCount > 0) { this.Size = _lastWindowSize; } _instanceCount++; }