Ejemplo n.º 1
0
        public void f_cmd_apply(object param)
        {
            UCDepartment_AddEdit uc = (UCDepartment_AddEdit)param;


            string   name    = uc.c_tb_name.Text;
            string   message = uc.c_tb_message.Text;
            DateTime date    = DateTime.Now;


            OEntry.f_addEdit(_sqlExecuter, false, true, _selectedDepartment, name, message, date);

            f_closeDialogSequence();
        }
Ejemplo n.º 2
0
        public UCMessage_AddEditCtrl(SQLExecuter sqlex, WMain wmain, OEntry o)
        {
            _wmain              = wmain;
            _sqlExecuter        = sqlex;
            _selectedDepartment = o;
            f_initializeData();

            //cmd
            p_cmd_apply  = new RelayCommand(f_cmd_apply);
            p_cmd_cancel = new RelayCommand(f_cmd_cancel);

            //pres
            UCDepartment_AddEdit uc = new UCDepartment_AddEdit(this);

            wmain.c_stack_form.Children.Add(uc);
            if (o != null)
            {
                uc.c_tb_name.SelectedText = o.p_name;
                uc.c_tb_message.Text      = o.p_message;
            }
        }