예제 #1
0
        private void ButtonJustin_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"; }
        }
예제 #2
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;
        }