示例#1
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (DeleteClick != null)
     {
         DeleteClick.Invoke(this, new EventArgs());
     }
 }
示例#2
0
 protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
 {
     if (ClearClick != null && e.Item.Text == "清除")
     {
         ClearClick.Invoke(e.Item, new EventArgs());
     }
     if (EditClick != null && e.Item.Text == "編輯")
     {
         EditClick.Invoke(e.Item, new EventArgs());
     }
     if (ExportClick != null && (e.Item.Text == "XLS" || e.Item.Text == "CSV"))
     {
         ExportClick.Invoke(e.Item, new EventArgs());
     }
     if (ImportClick != null && e.Item.Text == "導入")
     {
         ImportClick.Invoke(e.Item, new EventArgs());
     }
     if (SearchClick != null && e.Item.Text == "查找")
     {
         SearchClick.Invoke(e.Item, new EventArgs());
     }
     if (NewClick != null && e.Item.Text == "新增")
     {
         NewClick.Invoke(e.Item, new EventArgs());
     }
     if (DeleteClick != null && e.Item.Text == "刪除")
     {
         DeleteClick.Invoke(e.Item, new EventArgs());
     }
     if (ApproveClick != null && e.Item.Text == "審核")
     {
         ApproveClick.Invoke(e.Item, new EventArgs());
     }
     if (HelpClick != null && e.Item.Text == "幫助")
     {
         HelpClick.Invoke(e.Item, new EventArgs());
     }
 }
示例#3
0
 private void Delete(object sender, RoutedEventArgs e)
 {
     DeleteClick.Invoke(sender, e);
 }
示例#4
0
 protected virtual void OnDeleteClick(EventArgs e)
 {
     EditorSelector?.CurrentEditor.Delete();
     DeleteClick?.Invoke(this, e);
 }
示例#5
0
 protected virtual void OnDeleteClick(EditorEventArgs e)
 {
     DeleteClick?.Invoke(this, e);
 }
示例#6
0
 protected virtual void btnDelete_Click(object sender, EventArgs e)
 {
     DeleteClick?.Invoke(sender, InitPageabledEventArgs());
 }