public OKButtonPressed ( Object sender, |
||
sender | Object | |
e | ||
리턴 | void |
void GlobalWindowManager_WindowAdded(object sender, GwmWindowEventArgs e) { OptionsForm optionsForm = e.Form as OptionsForm; if (optionsForm != null) { TabPage tp = new TabPage("QuickSearch"); tp.BackColor = SystemColors.Window; tp.AutoScroll = true; OptionsControl optionsControl = new OptionsControl(); //optionsControl.BackColor = SystemColors.Control; tp.Controls.Add(optionsControl); TabControl tc = optionsForm.Controls.Find("m_tabMain", false)[0] as TabControl; //System.Drawing.Image image = Resources.search_icon_16; //tc.ImageList.Images.Add("QuickSearch", image); //tp.ImageKey = "QuickSearch"; tc.TabPages.Add(tp); //optionsForm.VisibleChanged += new EventHandler(delegate(object o, EventArgs em) //{ // em. //}); optionsControl.Dock = DockStyle.Top; Button buttonOK = optionsForm.Controls.Find("m_btnOK", false)[0] as Button; buttonOK.Click += delegate(object senderr, EventArgs evtarg) { optionsControl.OKButtonPressed(senderr, evtarg); //removeBuiltinQuickFind(host); this.qsControl.UpdateWidth(); //this.qsControl. }; //buttonOK.Click += new EventHandler(optionsControl.OKButtonPressed); } }
void GlobalWindowManager_WindowAdded(object sender, GwmWindowEventArgs e) { OptionsForm optionsForm = e.Form as OptionsForm; if (optionsForm != null) { TabPage tp = new TabPage("QuickSearch"); tp.BackColor = SystemColors.Window; tp.AutoScroll = true; OptionsControl optionsControl = new OptionsControl(); //optionsControl.BackColor = SystemColors.Control; tp.Controls.Add(optionsControl); TabControl tc = optionsForm.Controls.Find("m_tabMain", false)[0] as TabControl; //System.Drawing.Image image = Resources.search_icon_16; //tc.ImageList.Images.Add("QuickSearch", image); //tp.ImageKey = "QuickSearch"; tc.TabPages.Add(tp); //optionsForm.VisibleChanged += new EventHandler(delegate(object o, EventArgs em) //{ // em. //}); optionsControl.Dock = DockStyle.Top; Button buttonOK = optionsForm.Controls.Find("m_btnOK", false)[0] as Button; buttonOK.Click += delegate(object senderr, EventArgs evtarg) { optionsControl.OKButtonPressed(senderr, evtarg); //removeBuiltinQuickFind(host); this.qsControl.UpdateWidth(); //this.qsControl. }; //buttonOK.Click += new EventHandler(optionsControl.OKButtonPressed); } }