private void Button1_ClickBefore(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent) { BubbleEvent = true; if (SelectedRow != 0) { UpdateUserView view = new UpdateUserView(Users[SelectedRow - 1], UserController, this); view.Show(); SelectedRow = 0; } else { MessageBox.Show("Select item"); } }
/// <summary> /// ProjectView daki User Listesini UpdateUserView Formuna Gönderen Metod /// </summary> public void GetUserDetail() { if (SelectedUser != null) { using (UpdateUserView updateUserView = new UpdateUserView(SelectedUser)) { updateUserView.updateUserViewModel.ProjectViewModel = this; updateUserView.Show(); } } else { MessageBox.Show("Please Select User.."); } }