Пример #1
0
 public CreatingTaskForm(decimal id)
 {
     this.context = new PmContext();
     InitializeComponent();
     currentId      = id;
     currentProject = context.PROJECTS.Find(currentId);
 }
 public TaskDetailsForm(string Id)
 {
     this.context = new PmContext();
     InitializeComponent();
     currentTaskId         = decimal.Parse(Id);
     currentTask           = context.PROJECT_TASKS.Find(currentTaskId);
     ProjectNameTb.Enabled = false;
 }
Пример #3
0
        public SearchExpertForm()
        {
            InitializeComponent();
            this.dbContext = new PmContext();

            //Set default values to controls
            this.SearchFilterDropDown.SelectedIndex = 0;
            this.ExpertSearchResultGrid.Visible     = false;
        }
        public CreatingProjectForm()
        {
            InitializeComponent();

            this.context                        = new PmContext();
            NewClientTb.Visible                 = false;
            CancelRegisterClient.Visible        = false;
            ProjectClientComboBox.SelectedIndex = -1;
        }
Пример #5
0
        public SearchProjectForm()
        {
            this.context = new PmContext();

            InitializeComponent();

            //Set default values to controls
            this.SearchFilterDropDown.SelectedIndex = 0;
            this.ProjectsGV.Visible      = false;
            this.dateTimePicker.Visible  = false;
            this.ProjectStatusCb.Visible = false;
        }
        public ExpertDetailsForm(ExpertVM expert)
        {
            if (expert == null)
            {
                throw new ArgumentNullException(nameof(expert));
            }

            this.dbContext = new PmContext();
            InitializeComponent();
            this.BindExpertTypesDropDown(expert);

            this.currentExpertId        = expert.Id;
            this.FirstNameTextBox.Text  = expert.FirstName;
            this.MiddleNameTextBox.Text = expert.MiddleName;
            this.LastNameTextBox.Text   = expert.LastName;
        }
        public ProjectDetailsForm(string id)
        {
            if (id == null)
            {
                throw new ArgumentNullException(nameof(id));
            }

            this.context = new PmContext();
            InitializeComponent();
            currentProjectId              = decimal.Parse(id);
            currentProject                = context.PROJECTS.Find(currentProjectId);
            StatusDdl.Enabled             = false;
            ClientTb.Enabled              = false;
            ClientTb.Text                 = currentProject.CLIENT.CLIENT_NAME;
            ProjectClientComboBox.Visible = false;
            RegisterNewClientBtn.Visible  = false;
            CancelNewClientBtn.Visible    = false;
        }