public EditActionButtonsView()
        {
            InitializeComponent();

            btChange.Click += (o, e) => ChangeClick?.Invoke();
            btEdit.Click   += (o, e) => EditClick?.Invoke();
        }
Пример #2
0
 private void Edit(object s, EventArgs e)
 {
     if (isDeleting)
     {
         item.IsChooseToDelete = !item.IsChooseToDelete;
         btnEdit.SetImageResource(item.IsChooseToDelete
             ? Resource.Drawable.icon_delete_amount_check
             : Resource.Drawable.icon_delete_amount_uncheck);
         Click?.Invoke(item.IsChooseToDelete, e);
     }
     else
     {
         EditClick?.Invoke(s, e);
     }
 }
Пример #3
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());
     }
 }
Пример #4
0
 private void pictureBox6_Click(object sender, EventArgs e)  // Edit test
 {
     EditClick?.Invoke(this);
 }
Пример #5
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     EditClick?.Invoke(this, e);
 }
Пример #6
0
 private void button2_Click(object sender, EventArgs e)
 {
     EditClick?.Invoke(sender, e);
 }
Пример #7
0
 public void OnEditClick()
 {
     EditClick?.Invoke();
 }
Пример #8
0
 private void EditButtonOnClick(object sender, RoutedEventArgs e)
 {
     EditClick?.Invoke(sender, e);
 }
Пример #9
0
 protected virtual void OnEditClick()
 {
     EditClick?.Invoke(this, EventArgs.Empty);
 }
Пример #10
0
 protected virtual void btnEdit_Click(object sender, EventArgs e)
 {
     EditClick?.Invoke(sender, e);
 }