void OnClicked(object sender, ToolBarButtonClickEventArgs e) { FolderBrowserDialog dialog = new FolderBrowserDialog(); if (dialog.ShowDialog(this) == DialogResult.OK) { statusbar.Text = dialog.SelectedPath; } }
void OnClicked(object sender, ToolBarButtonClickEventArgs e) { FontDialog dialog = new FontDialog(); if (dialog.ShowDialog(this) == DialogResult.OK) { text.Font = dialog.Font; LocateText(); } }
void OnClicked(object sender, ToolBarButtonClickEventArgs e) { ColorDialog dialog = new ColorDialog(); if (dialog.ShowDialog(this) == DialogResult.OK) { color = dialog.Color; Invalidate(); } }
void ToolBar_ButtonClick (object sender, ToolBarButtonClickEventArgs e) { Form child = new Form (); child.ClientSize = new Size (200, 100); child.MdiParent = this; child.Text = "Child"; child.Load += new EventHandler (Child_Load); child.Show (); }
private void toolBar1_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button == this.tbExit) { if (this.onlyShow) { Neusoft.FrameWork.WinForms.Classes.Function.SaveDefaultValue("NoticeSetting", "True", this.readDate.ToString()); } this.Close(); return; } if (e.Button == this.tbQuery) { this.ShowList(null); return; } if (e.Button == this.tbSave) { if (this.ucNotice1.SaveNotice(this.treeView1.SelectedNode.Text) == 1) { this.treeView1.SelectedNode.Tag = this.ucNotice1.Notice; this.treeView1.SelectedNode = this.treeView1.Nodes[0]; } return; } if (e.Button == this.tbDel) { if (this.ucNotice1.DelNotice() == 1) { this.treeView1.SelectedNode.Remove(); this.treeView1.SelectedNode = this.treeView1.Nodes[0]; } return; } if (e.Button == this.tbPrint) { this.ucNotice1.Print(); return; } if (e.Button == this.tbAdd) { this.New(); return; } if (e.Button == this.tbbDate) { //选择时间段,如果没有选择就返回 if (Neusoft.FrameWork.WinForms.Classes.Function.ChooseDate(ref this.myBeginTime, ref this.myEndTime) == 0) { return; } this.ShowList(null); } }
private void toolbar_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button == this.findReferencesButton) { FindReferencesButtonClick(); } else if (e.Button == this.findUnusedButton) { FindUnusedButtonClick(); } }
private void tbToolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button == this.tbbUndo) { mcEditUndo_Click(sender, EventArgs.Empty); } else if (e.Button == this.tbbRedo) { mcEditRedo_Click(sender, EventArgs.Empty); } }
private void tbsMove_Click(object sender, ToolBarButtonClickEventArgs e) { if (dbManager == null) { return; } ToolBarButton btn = e.Button; ManageToolbarEvents(); }
private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button == toolBarButtonStart) { _logger.Start(); } else if (e.Button == toolBarButtonStop) { _logger.Stop(); } }
void OnToolbarButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (_buttonBack == e.Button) { _webBrowser.GoBack(); } else if (_buttonForward == e.Button) { _webBrowser.GoForward(); } }
private void tbr_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { switch (e.Button.Tag.ToString()) { case "New": jeu.CommencerPartie(); break; case "Open": // TODO break; case "Save": // TODO break; case "UndoMove": // TODO break; case "RedoMove": // TODO break; case "UndoAllMoves": // TODO break; case "RedoAllMoves": // TODO break; case "FlipBoard": // TODO break; case "Think": // TODO break; case "MoveNow": // TODO break; case "ResumePlay": // TODO break; case "PausePlay": // TODO break; } }
/// <summary> /// Called when an item is clicked. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">A <see cref="ToolBarButtonClickEventArgs"/> that contains event data.</param> void Parent_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { ToolBarButton item = e.Button; NuGenApplicationCommand applicationCommand = _commandManager.GetApplicationCommandByItem(item); if (applicationCommand != null) { Control ownerControl = GetOwnerControl(sender); _owner = null; applicationCommand.Execute(ownerControl, item); } }
/// <summary> /// Handles the ButtonClick event of the tbWizardAction control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Gizmox.WebGUI.Forms.ToolBarButtonClickEventArgs"/> instance containing the event data.</param> void tbWizardAction_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button.Tag != null) { switch (e.Button.Tag.ToString().ToLower()) { case "save": MessageBox.Show("Save Record?", "Save Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question, new EventHandler(SaveMessageHandler)); break; } } }
void OnClicked(object sender, ToolBarButtonClickEventArgs e) { OpenFileDialog dialog = new OpenFileDialog(); dialog.Filter = "C# files (*.cs)|*.cs"; if (dialog.ShowDialog(this) == DialogResult.OK) { StreamReader reader = new StreamReader(dialog.FileName); string data = reader.ReadToEnd(); reader.Close(); textbox.Text = data; } }
protected override void OnButtonClick(ToolBarButtonClickEventArgs e) { if (this.wholeDropDownButtons.Contains(e.Button)) { // As the click event has fired for a whole dropdown we aren't // running under Windows, so show it ourselves this.ShowDropdownMenu(e.Button); return; } base.OnButtonClick(e); }
private void toolBarAlign_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { ToolBarButton btn; for (int i = 0; i < toolBarAlign.Buttons.Count; i++) { btn = toolBarAlign.Buttons[i]; btn.Pushed = false; } btn = e.Button; btn.Pushed = true; }
private void toolBarStandar_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { switch (toolBarStandar.Buttons.IndexOf(e.Button)) { case 0: { this.gridResultado.UpdateData(); this.DialogResult = DialogResult.OK; break; } } }
private void tbEmploye_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { switch (e.Button.Tag.ToString()) { case "ADD": new FormAjoutEmploye(_FormMain, this).ShowDialog(this); break; case "DELETE": DeleteSelectedEmploye(); break; case "REFRESH": break; } }
private void tbFunction_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { switch (e.Button.Tag.ToString()) { case "JOURFERIER": new FormJourFerier(_ColJourFerier, _formMain.AppConfig).ShowDialog(this); UpdateBoldedDate(); SetDate(); break; case "REFRESH": RefreshView(); break; case "SHOWCLIENT": if (tabControl1.SelectedTab.Tag.ToString() == "DAY") { _formMain.CreationListClient(listViewEx1.SelectedItems[0].SubItems[1].Text); } else { _formMain.CreationListClient(_SelectedItemsInfos.ContratNumber); } break; case "SHOWSEANCE": if (tabControl1.SelectedTab.Tag.ToString() == "DAY") { if (clientControl1.ShowCours() == DialogResult.OK) { RefreshView(); } } else { clientControl1.Client = _ClientList.GetClient(_SelectedItemsInfos.ContratNumber); if (clientControl1.ShowCours() == DialogResult.OK) { RefreshView(); } } break; case "PRINT": PrintNormal(); break; case "DELETENOTES": DeleteAllNotes(); break; } }
void tBar_Button_Click(object sender, ToolBarButtonClickEventArgs e) { switch (e.Button.ImageIndex) { case 0: btn_Open_Click(); break; case 1: btn_SaveAs_Click(); break; case 2: btn_Exit_Click(); break; case 3: btn_NewFile_Click(); break; case 4: btn_Copy_Click(); break; case 5: btn_Paste_Click(); break; case 6: btn_Ubdo_Click(); break; case 7: btn_Redo_Click(); break; case 8: btn_FontColor_Click(); break; case 9: btn_Backcolor_Click(); break; case 10: btn_FontFormat_Click(); break; default: break; } }
private void nav_TBarClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button.Equals(nav.cmd_add)) { if (vs.Rows[vs.Rows.Count - 1].UserData + "" == "2") { return; } nav.ToolBar_Click(e); // vs.Rows[vs.Rows.Count-1]["EMP_ID"]=vs1.Rows[vs1.Row]["EMP_ID"]; // int max=T_String.GetMax("MAX(SEQ_NO)","FILC09A","EMP_ID=N'"+vs1.Rows[vs1.Row]["EMP_ID"]+"'"); // vs.Rows[vs.Rows.Count-1]["SEQ_NO"]=max; // vs.Rows[vs.Rows.Count-1]["BLT_NM"]=PublicFunction.A_UserID; // vs.Rows[vs.Rows.Count-1]["MAN_ST"]=vs.Rows[vs.Rows.Count-1]["MAN_ED"]= // vs.Rows[vs.Rows.Count-1]["BLT_DT"]=T_String.GetDate().ToString("yyyy/MM/dd HH:mm"); return; } if (e.Button.Equals(nav.cmd_save)) { if (vs.Row <= 0) { return; } nav.ToolBar_Click(e); // int max=T_String.GetMax("MAX(SEQ_NO)","FILB06A","EMP_ID=N'"+vs1.Rows[vs1.Row]["EMP_ID"]+"'"); // Func.RecordSet rs=new Func.RecordSet("Select * from FILB06A where EMP_ID=N'"+vs1.Rows[vs1.Row]["EMP_ID"]+"' and SEQ_NO="+(max-1),PublicFunction.C_con); // string sql=""; // if(rs.rows>0) // { // sql="update FILB01A set ACC_NO=N'"+rs.record(0,"ACC_NO")+"'," // +"ACC_NM=N'"+rs.record(0,"ACC_NM")+"'," // +"BNK_NM=N'"+rs.record(0,"BNK_NM")+"' where EMP_ID=N'"+vs1.Rows[vs1.Row]["EMP_ID"]+"'"; // } // else // sql="update FILB01A set ACC_NO=Default,ACC_NM=Default,BNK_NM=Default where EMP_ID=N'"+vs1.Rows[vs1.Row]["EMP_ID"]+"'"; // PublicFunction.SQL_Execute(sql); return; } if (e.Button.Equals(nav.cmd_refresh)) { if (nav.wh != "") { nav.ToolBar_Click(e); } //else //nav.Show_VS("DEP_ID in "+T_String.DEP_ID(this.Tag)); return; } nav.ToolBar_Click(e); }
private void toolBar1_ButtonClick(Object sender, ToolBarButtonClickEventArgs e) { switch (toolBar.Buttons.IndexOf(e.Button)) { case 1: { System.Threading.Thread.Sleep(100); this.tabPage2.Controls.Remove(this.cardView); CardView c = new CardView(0); c.AutoSize = true; this.tabPage2.Controls.Add(c); this.Refresh(); }; break; } }
private void tbrOperation_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (!string.IsNullOrEmpty(e.Button.Name)) { switch (e.Button.Name.ToLower()) { case "delete": DeleteOperation(); LoadOperation_Data(); break; } } }
protected void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button.Text == WINDOW_LABEL) { ScrollControl.ScrollDirector = windowSD; ScrollControl.UpdateScrollbars(); } else { ScrollControl.ScrollDirector = documentSD; ScrollControl.UpdateScrollbars(); } }
private void toolBar1_Click(object sender, ToolBarButtonClickEventArgs eventargs) { // if ower print button is pressed if (eventargs.Button == printButton) { //innerPrintDocument.Print(); // then start owr own printing //MessageBox.Show("The printing has finished with succes!"); if (this.PrintButtonClick != null) { this.PrintButtonClick(this, null); } } }
/// <summary> /// The "on click" event handler /// </summary> /// <param name="sender">The sender</param> /// <param name="e">The event handler arguments</param> protected void ToolBar_ButtonClick(Object sender, ToolBarButtonClickEventArgs e) { PaletteButton but = (PaletteButton)e.Button; if (active != but) { if (active != null) { active.Pushed = false; } active = but; } }
protected virtual void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button.Equals(tbOkButton)) { resultButton.DialogResult = DialogResult.OK; } else { resultButton.DialogResult = DialogResult.Cancel; } resultButton.raiseclick(); }
private void nav_TBarClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button.Equals(nav.cmd_add)) { if (vs.Rows.Count == 1 || (int)vs.Rows[vs.Rows.Count - 1].UserData != 2) { nav.ToolBar_Click(e); } vs.Rows[vs.Rows.Count - 1]["VAC_ID"] = T_String.GetMax("MAX(VAC_ID)", "FILA06A").ToString("000"); return; } nav.ToolBar_Click(e); }
private void buttonQuadtreeHandleClick(object sender, ToolBarButtonClickEventArgs e) { var mainform = (sender as ToolBar).FindForm() as MainForm; if (e.Button.Pushed) { mainform.DrawQuadTree(); } else { mainform.ReDrawMap(); } }
} // mitemToolsOptions_Click /// tbarCommands_ButtonClick - Respond to ButtonClick /// event for toolbar tbarCommands private void tbarCommands_ButtonClick( object sender, ToolBarButtonClickEventArgs e) { if (e.Button == tbbEditFormat) { mitemEditFont_Click(sender, e); } else if (e.Button == tbbViewOptions) { mitemToolsOptions_Click(sender, e); } }
private void toolBarStandar_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { switch (toolBarStandar.Buttons.IndexOf(e.Button)) { case 0: _uiController.Previous(); break; case 7: _uiController.Execute(); break; } }
// Hàm xử lý sự kiện nhấn nút EditState private void buttonEditStateHandleClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button.Pushed) { e.Button.ToolTipText = "Object"; e.Button.ImageIndex = 0; } else { e.Button.ToolTipText = "Map"; e.Button.ImageIndex = 1; } }
private void toolBar1_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { switch (e.Button.ImageIndex) { case 0: webBrowser1.Url = new Uri("http://192.168.128.5/www"); break; case 1: this.Close(); break; } }
private void tbStudentsList_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { switch (e.Button.Tag.ToString()) { case "REFRESH": FindClient(tbbAddCoursFinish.Pushed); break; case "COURSTERMINER": FindClient(tbbAddCoursFinish.Pushed); break; } }
private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (!string.IsNullOrEmpty(e.Button.Name)) { switch (e.Button.Name.ToLower()) { case "save": SaveRecord(); Close(); break; } } }
void OnClicked(object sender, ToolBarButtonClickEventArgs e) { if (e.Button.Tag.Equals("Exit")) Close(); }
void ToolBar_ButtonClick (object sender, ToolBarButtonClickEventArgs e) { MessageBox.Show ("Button clicked."); }