Exemplo n.º 1
0
        public void f_cmd_edit(object param)
        {
            WMain w = (WMain)param;

            f_openDialogSequence(w);
            new Department.UCMessage_AddEditCtrl(_sqlExecuter, w, p_selectedMessage);
        }
Exemplo n.º 2
0
        public void f_cmd_add(object param)
        {
            WMain w = (WMain)param;

            f_openDialogSequence(w);
            new Department.UCMessage_AddEditCtrl(_sqlExecuter, w, null);
        }
Exemplo n.º 3
0
        public void f_cmd_remove(object param)
        {
            WMain w = (WMain)param;

            f_openDialogSequence(w);
            OEntry.f_remove(_sqlExecuter, false, p_selectedMessage);
            f_closeDialogSequence(w);
        }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
 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();
 }