Esempio n. 1
0
 void ChangeLanguage(Languauge l)
 {
     groupBox1.Text = l.GroupBoxLanguage;
     radBatEnglish.Text = l.Eng;
     radBatRus.Text = l.Rus;
     btOk.Text = l.Ok;
     this.Text = l.NameFormLang;
 }
Esempio n. 2
0
        public FunkWithStudent(Languauge l)
        {
            InitializeComponent();
            inform = new MainInform();

            comboPol.Items.Add(l.Man);
            comboPol.Items.Add(l.Woman);
            this.Text = l.NameFormNew;
            ChangeLang(l);
        }
Esempio n. 3
0
        public FunkWithStudent(Languauge l)
        {
            InitializeComponent();
            inform = new MainInform();

            comboPol.Items.Add(l.Man);
            comboPol.Items.Add(l.Woman);
            this.Text = l.NameFormNew;
            ChangeLang(l);
        }
Esempio n. 4
0
 void ChangeLang(Languauge b)
 {
     btCancel.Text = b.Cancel;
     btOk.Text     = b.Ok;
     labName.Text  = b.Name;
     label2.Text   = b.Lastname;
     label3.Text   = b.Surname;
     label4.Text   = b.Age;
     label5.Text   = b.Pol;
     label6.Text   = b.Group;
 }
Esempio n. 5
0
 public Language( Languauge l)
 {
     InitializeComponent();
     if (l.CurentLang == KindLanguage.Russian)
     {
         radBatRus.Checked = true;
     }
     else
         radBatEnglish.Checked = true;
     ChangeLanguage(l);
 }
Esempio n. 6
0
 public Language(Languauge l)
 {
     InitializeComponent();
     if (l.CurentLang == KindLanguage.Russian)
     {
         radBatRus.Checked = true;
     }
     else
     {
         radBatEnglish.Checked = true;
     }
     ChangeLanguage(l);
 }
Esempio n. 7
0
 public FunkWithStudent(Student s, Languauge l)
 {
     InitializeComponent();
     txtName.Text     = s.Name;
     txtSur.Text      = s.Surname;
     txtSurname.Text  = s.Lastname;
     numericAge.Value = s.Age;
     comboPol.Items.Add(l.Man);
     comboPol.Items.Add(l.Woman);
     comboPol.SelectedItem = s.Pol;
     comboGroup.Text       = s.StudentGroup.GroupStudent;
     this.Text             = l.NameFormEdit;
     ChangeLang(l);
 }
Esempio n. 8
0
 public FunkWithStudent(Student s,Languauge l)
 {
     InitializeComponent();
     txtName.Text = s.Name;
     txtSur.Text = s.Surname;
     txtSurname.Text = s.Lastname;
     numericAge.Value = s.Age;
     comboPol.Items.Add(l.Man);
     comboPol.Items.Add(l.Woman);
     comboPol.SelectedItem = s.Pol;
     comboGroup.Text = s.StudentGroup.GroupStudent;
     this.Text = l.NameFormEdit;
     ChangeLang(l);
 }
Esempio n. 9
0
        private void langugeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Language formLanguage = new Language(lang);

            formLanguage.ShowDialog();
            if (formLanguage.DialogResult == DialogResult.OK)
            {
                lang = new Languauge(KindLanguage.Russian);
            }
            else if (formLanguage.DialogResult == DialogResult.Cancel)
            {
                lang = new Languauge(KindLanguage.English);
            }
            ChangeLangForm1();
        }
Esempio n. 10
0
        public MainInform()
        {
            InitializeComponent();
            lang = new Languauge(KindLanguage.Russian);

            all = new List <Student>();
            tmp = new Student();

            //lngMenu=new Student();

            //labName.DataBindings.Add("Text", lngMenu, "Name");
            //label2.DataBindings.Add("Text", lngMenu, "Surname");
            //label3.DataBindings.Add("Text", lngMenu, "Lastname");
            //label4.DataBindings.Add("Text", lngMenu, "Age"); ///////////
            //label5.DataBindings.Add("Text", lngMenu, "Pol");
            //label6.DataBindings.Add("Text", lngMenu, "StudentGroup.GroupStudent");

            btNew.Click      += new EventHandler(buttonClick);
            btEdit.Click     += new EventHandler(buttonClick);
            btAllRight.Click += new EventHandler(btAll_Click);
            btAllLeft.Click  += new EventHandler(btAll_Click);
            txtName.DataBindings.Add("Text", tmp, "Name");
            txtSurname.DataBindings.Add("Text", tmp, "Surname");
            txtSur.DataBindings.Add("Text", tmp, "Lastname");
            txtAge.DataBindings.Add("Text", tmp, "Age"); ///////////
            txtPol.DataBindings.Add("Text", tmp, "Pol");
            txtGroup.DataBindings.Add("Text", tmp, "StudentGroup.GroupStudent");
            btDelete.Enabled               = false;
            btEdit.Enabled                 = false;
            btAllLeft.Enabled              = false;
            btOneLeft.Enabled              = false;
            btOneRight.Enabled             = false;
            btAllRight.Enabled             = false;
            btSave.Enabled                 = false;
            openToolStripMenuItem.Click   += new EventHandler(btOpen_Click);
            saveToolStripMenuItem.Click   += new EventHandler(btSave_Click);
            newToolStripMenuItem.Click    += new EventHandler(buttonClick);
            changeToolStripMenuItem.Click += new EventHandler(buttonClick);
            deleteToolStripMenuItem.Click += new EventHandler(btDelete_Click);
            menuStrip1.BackColor           = Color.Cyan;
            ChangeLangForm1();


            saveToolStripMenuItem.ShortcutKeys     = Keys.Control | Keys.S;
            saveToolStripMenuItem.ShowShortcutKeys = true;
        }
Esempio n. 11
0
        public MainInform()
        {
            InitializeComponent();
            lang = new Languauge(KindLanguage.Russian);

            all = new List<Student>();
            tmp = new Student();

            //lngMenu=new Student();

            //labName.DataBindings.Add("Text", lngMenu, "Name");
            //label2.DataBindings.Add("Text", lngMenu, "Surname");
            //label3.DataBindings.Add("Text", lngMenu, "Lastname");
            //label4.DataBindings.Add("Text", lngMenu, "Age"); ///////////
            //label5.DataBindings.Add("Text", lngMenu, "Pol");
            //label6.DataBindings.Add("Text", lngMenu, "StudentGroup.GroupStudent");

            btNew.Click += new EventHandler(buttonClick);
            btEdit.Click += new EventHandler(buttonClick);
            btAllRight.Click += new EventHandler(btAll_Click);
            btAllLeft.Click += new EventHandler(btAll_Click);
            txtName.DataBindings.Add("Text", tmp, "Name");
            txtSurname.DataBindings.Add("Text", tmp, "Surname");
            txtSur.DataBindings.Add("Text", tmp, "Lastname");
            txtAge.DataBindings.Add("Text", tmp, "Age"); ///////////
            txtPol.DataBindings.Add("Text", tmp, "Pol");
            txtGroup.DataBindings.Add("Text", tmp, "StudentGroup.GroupStudent");
            btDelete.Enabled = false;
            btEdit.Enabled = false;
            btAllLeft.Enabled = false;
            btOneLeft.Enabled = false;
            btOneRight.Enabled = false;
            btAllRight.Enabled = false;
            btSave.Enabled = false;
            openToolStripMenuItem.Click += new EventHandler(btOpen_Click);
            saveToolStripMenuItem.Click += new EventHandler(btSave_Click);
            newToolStripMenuItem.Click += new EventHandler(buttonClick);
            changeToolStripMenuItem.Click += new EventHandler(buttonClick);
            deleteToolStripMenuItem.Click += new EventHandler(btDelete_Click);
            menuStrip1.BackColor = Color.Cyan;
            ChangeLangForm1();

            saveToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.S;
            saveToolStripMenuItem.ShowShortcutKeys = true;
        }
Esempio n. 12
0
 private void langugeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Language formLanguage = new Language(lang);
     formLanguage.ShowDialog();
     if (formLanguage.DialogResult == DialogResult.OK)
         lang =new Languauge( KindLanguage.Russian);
     else if (formLanguage.DialogResult == DialogResult.Cancel)
         lang = new Languauge(KindLanguage.English);
      ChangeLangForm1();
 }
Esempio n. 13
0
 void ChangeLang(Languauge b)
 {
     btCancel.Text = b.Cancel;
     btOk.Text = b.Ok;
     labName.Text = b.Name;
     label2.Text = b.Lastname;
     label3.Text = b.Surname;
     label4.Text = b.Age;
     label5.Text = b.Pol;
     label6.Text = b.Group;
 }