Exemplo n.º 1
0
 public EditMaterial(Material material, IUpdate caller)
 {
     InitializeComponent();
     book = new AddNewBooks2(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     lecture = new AddNewLectures2(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     section = new AddNewSections2(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     update           = caller;
     this.material    = material;
     textBox1.Text    = material.Name;
     avaliblelectures = new List <Lecture>();
     avaliblebooks    = new List <Book>();
     avaliblesections = new List <Section>();
     selectedlectures = material.Lectures;
     selectedsections = material.Sections;
     selectedbooks    = material.Books;
     Initialize();
 }
Exemplo n.º 2
0
 private void LinkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     section = new AddNewSections2(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     section.Size = this.Size;
     this.Controls.Add(section);
     section.BringToFront();
 }
Exemplo n.º 3
0
 public AddNewMaterial2(IExitAddNewMaterial caller)
 {
     InitializeComponent();
     book = new AddNewBooks2(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     lecture = new AddNewLectures2(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     section = new AddNewSections2(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     exit             = caller;
     avaliblelectures = new List <Lecture>();
     avaliblebooks    = new List <Book>();
     avaliblesections = new List <Section>();
     selectedlectures = new List <Lecture>();
     selectedsections = new List <Section>();
     selectedbooks    = new List <Book>();
     Initialize();
 }