Esempio n. 1
0
 public void refresOrgList(OrganizationGroup og)
 {
     this.orgListBox.Items.Clear();
     foreach (OrganizationGroupContent content in og.GetOrganizationGroupContents())
     {
         this.orgListBox.Items.Add(content.GetOrganization());
     }
 }
 public OrganizationGroupAddForm(OrganizationGroup grp)
 {
     this.InitializeComponent();
     this.set_Font(Manager.WindowFont);
     this.group = grp;
     this.set_Text("Добавление группы");
     if (this.group.Code > 0)
     {
         this.set_Text("Редактирование группы");
         this.okBtn.set_Text("Изменить группу");
         this.numericUpDown.set_Value((decimal) this.group.Code);
         this.nameTb.set_Text(this.group.Name.ToString());
     }
 }
Esempio n. 3
0
 private void addBtn_Click(object sender, System.EventArgs e)
 {
     OrganizationGroup grp = new OrganizationGroup();
     new OrganizationGroupAddForm(grp).ShowDialog();
     this.refreshGroupList();
 }