Пример #1
0
        private void Button4_Click(object sender, EventArgs e)
        {
            if (Unicoder)
            {
                textBox7.Text = Unicodes.CHARtoASCII(textBox6.Text, textBox8.Text.ToCharArray()[0], "Error!");
            }
            else
            {
                textBox6.Text = Unicodes.ASCIItoCHAR(textBox7.Text, textBox8.Text.ToCharArray()[0], "Error!");
            }

            Unicoder = !Unicoder;
        }
Пример #2
0
        private void CTB_Click(object sender, EventArgs e)
        {
            try
            {
                char BT = string.IsNullOrEmpty(BTTB.Text) ? ',' : BTTB.Text.ToCharArray()[0];
                BTTB.Text = BT.ToString();

                if (TACB.SelectedItem.ToString() == "CHAR")
                {
                    URTB.Text = Unicodes.CHARtoASCII(UVTB.Text, BT);
                }
                else
                {
                    URTB.Text = Unicodes.ASCIItoCHAR(UVTB.Text, BT);
                }
            }
            catch
            {
                //
            }
        }
Пример #3
0
        private void Button15_Click(object sender, EventArgs e)
        {
            try
            {
                ComboBox();
                if (Selection11)
                {
                    textBox12.Text = Unicodes.CHARtoASCII(textBox11.Text, textBox18.Text.ToCharArray()[0], "Error!");
                }
                else
                {
                    textBox11.Text = Unicodes.ASCIItoCHAR(textBox12.Text, textBox18.Text.ToCharArray()[0], "Error!");
                }

                button13.Cursor = Cursors.Hand;
                button14.Cursor = Cursors.Hand;
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message);
            }
        }