Пример #1
0
        void BTN_OpenProject_Click(object sender, EventArgs e)
        {
            PublicControls.SelectForm <Model.Project> form = new PublicControls.SelectForm <Model.Project>();
            List <Model.Project> list = Model.DataHelper.GetAllObject <Model.Project>();

            form.SetList <Model.Project>(list);
            if (form.ShowDialog() == DialogResult.OK)
            {
                Model.Project project = form.SelectedObject;
                this.CurrentProject = project;
                UpdateUI();
            }
        }
Пример #2
0
 private void OpenProject(Guid id)
 {
     Model.Project project = Model.DataHelper.GetObjectById <Model.Project>(id);
     CurrentProject = project;
 }