Ejemplo n.º 1
0
        private void ButtonHrDep_Click(object sender, RoutedEventArgs e)
        {
            ClearMe();
            int x = 0;

            try
            {
                x             = HrDep.MainHrDep();
                textBox1.Text = Papa.infoSmall;
                textBox2.Text = Papa.infoBig;
            }
            catch { textBox2.Text = "Error"; }
        }
Ejemplo n.º 2
0
        private void ButtonSat_Click(object sender, RoutedEventArgs e)
        {
            Papa.partnerChoised = "Сат";
            ClearMe();
            int x = 0;

            try
            {
                x             = HrDep.MainHrDep();
                textBox1.Text = Papa.partnerChoised + " " + Papa.infoSmall;
                textBox2.Text = Papa.infoBig;
            }
            catch { textBox2.Text = "Error"; }
        }
Ejemplo n.º 3
0
        private void ButtonAgentsChoise_Click(object sender, RoutedEventArgs e)
        {
            var agentsSplit     = agents.Split('\n');
            int choise          = Convert.ToInt32(textBoxAgChoise.Text);
            var agentDirty      = agentsSplit[choise];
            var agentDirtySplit = agentDirty.Split(' ');
            var agent           = agentDirty.Split('_')[1];

            textBox1.Text = agent;

            Papa.partnerChoised = agent;
            //ClearMe();
            int x = 0;

            try
            {
                x             = HrDep.MainHrDep();
                textBox1.Text = agent + " ~ " + Papa.infoSmall;
                textBox2.Text = Papa.infoBig;
            }
            catch { textBox2.Text = "Error"; }

            //textBox1.Text = textBoxAgChoise;
        }