Exemplo n.º 1
0
        private void ConsultationChangesUC_Load(object sender, System.EventArgs e)
        {
            Allteachers = MainForm.Allteachers;
            teacherNamesComboBox.Items         = Allteachers.Names.ToArray();
            oldConsultationsTB.Enabled         = false;
            teacherNamesComboBox.selectedIndex = 0;
            Point p1 = new Point();

            p1.X = -205;
            p1.Y = 480;
            Point            scrPos    = this.PointToScreen(p1);
            notificationForm childForm = new notificationForm("При всяка една промяна приложението ще се рестартира!", notificationForm.AlertType.fail, scrPos, 536);

            childForm.Show();
        }
Exemplo n.º 2
0
        public TeachersUC()
        {
            InitializeComponent();

            Allteachers   = MainForm.Allteachers;
            teacherChosen = MainForm.teacherChosen;

            string[] teacherNames = getTeacherInfo().ToArray();
            teachersComboBox.Items         = teacherNames;
            teachersComboBox.selectedIndex = 0;

            hideLabels();

            teacherChosen.Page = 0;
        }
Exemplo n.º 3
0
 private void ChangeAddSip_Load(object sender, EventArgs e)
 {
     Allteachers          = Main.Allteachers;
     comboBox3.DataSource = Allteachers.Names;
     textBox8.Enabled     = false;
 }