public void f_cmd_edit(object param) { WMain w = (WMain)param; f_openDialogSequence(w); new Department.UCMessage_AddEditCtrl(_sqlExecuter, w, p_selectedMessage); }
public void f_cmd_add(object param) { WMain w = (WMain)param; f_openDialogSequence(w); new Department.UCMessage_AddEditCtrl(_sqlExecuter, w, null); }
public void f_cmd_remove(object param) { WMain w = (WMain)param; f_openDialogSequence(w); OEntry.f_remove(_sqlExecuter, false, p_selectedMessage); f_closeDialogSequence(w); }
public WMainCtrl() { try { //data f_initializeData(); //cmd p_cmd_add = new RelayCommand(f_cmd_add); p_cmd_edit = new RelayCommand(f_cmd_edit); p_cmd_remove = new RelayCommand(f_cmd_remove); p_cmd_dc = new RelayCommand(f_cmd_dc); //presentation _wMain = new WMain(this, "Project management and organisation", false); _wMain.Show(); } catch (Exception exc) { printError(exc.Message); } }
public void f_closeDialogSequence(WMain w) { w.c_stack_main.Visibility = Visibility.Visible; w.c_stack_form.Visibility = Visibility.Collapsed; w.c_stack_form.Children.Clear(); }