private void editdatebutton_Click(object sender, RoutedEventArgs e) { EditDate ed = new EditDate(bolayer, currentTaskid); ed.ShowDialog(); bolayer.load_task_form_server(); }
private void EditDateExecute() { try { EditDate e = new EditDate(admin); e.ShowDialog(); if ((e.DataContext as EditDateViewModel).isUpdated == true) { adminList = Service.Service.GetVwAdministratorList(); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void EventMouseDoubleClick(object sender, MouseButtonEventArgs e) { e.Handled = true; CharacterGroupEvent ev = ((ListViewItem)sender).Content as CharacterGroupEvent; CharacterGroupEvent edEvent = new CharacterGroupEvent { ID = ev.ID, GroupEventID = ev.GroupEventID, Description = ev.Description.Clone() as String, CharaList = ev.CharaList.Clone() as String }; EditDate ed = new EditDate(m_wd, edEvent); ed.ShowDialog(); if (((EditDateDatas)ed.DataContext).Valid) { TextBlock tb = FindName("EventDesc") as TextBlock; tb.Inlines.Clear(); ev.Description = edEvent.Description; m_wd.CharacterDatas.CurrentDate = null; m_wd.CharacterDatas.CurrentDate = ev; } }