private void mnuAddNewActionActivity_Click(object sender, Telerik.Windows.RadRoutedEventArgs e) { //if (optPersist.IsChecked == false && optNotPersist.IsChecked == false) //{ // MessageBox.Show("لطفا یکی از حالات ذخیره و یا عدم ذخیره وضعیت را انتخاب نمایید"); // return; //} frmUIActionActivity view = new frmUIActionActivity(0, EntityID); view.ItemSaved += View_ItemSaved; MyProjectManager.GetMyProjectManager.ShowDialog(view, "تعریف اقدامات", Enum_WindowSize.Big); }
private void mnuAddNewActionActivity_Click(object sender, Telerik.Windows.RadRoutedEventArgs e) { //var menuItem = sender as RadMenuItem; //var contextMenu = menuItem.Parent as RadContextMenu; //var source = contextMenu.GetClickedElement<GridViewRow>(); //if (contextMenu != null && source != null) //{//فرم جدا هم ساختاه شود frmUIActionActivity view = new frmUIActionActivity(0, EntityID); view.ItemSaved += View_ItemSaved; MyProjectManager.GetMyProjectManager.ShowDialog(view, "تعریف اقدامات", Enum_WindowSize.Big); //} }
private void mnuEditActionActivity_Click(object sender, Telerik.Windows.RadRoutedEventArgs e) { var menuItem = sender as RadMenuItem; var contextMenu = menuItem.Parent as RadContextMenu; var source = contextMenu.GetClickedElement <GridViewRow>(); if (contextMenu != null && source != null) { var actionActivity = (source.DataContext as UIActionActivityDTO); frmUIActionActivity view = new frmUIActionActivity((source.DataContext as UIActionActivityDTO).ID, EntityID); view.ItemSaved += View_ItemSaved; MyProjectManager.GetMyProjectManager.ShowDialog(view, "تعریف اقدامات", Enum_WindowSize.Big); } }
private void mnuEditActionActivity_Click(object sender, Telerik.Windows.RadRoutedEventArgs e) { //if (optPersist.IsChecked == false && optNotPersist.IsChecked == false) //{ // MessageBox.Show("لطفا یکی از حالات ذخیره و یا عدم ذخیره وضعیت را انتخاب نمایید"); // return; //} var menuItem = sender as RadMenuItem; var contextMenu = menuItem.Parent as RadContextMenu; var source = contextMenu.GetClickedElement <GridViewRow>(); if (contextMenu != null && source != null) { frmUIActionActivity view = new frmUIActionActivity((source.DataContext as UIActionActivityDTO).ID, EntityID); view.ItemSaved += View_ItemSavedEdit; MyProjectManager.GetMyProjectManager.ShowDialog(view, "تعریف اقدامات", Enum_WindowSize.Big); } }