Exemple #1
0
        /// </summary>

        public Form1()
        {
            InitializeComponent();
            Xilog = new xilog();

            //string[] temp;
            //string fileName = "2-ф356-з3-ф356-2-н600-2-ф-2#н682(0); н600(0); н1044(2); #н1044(1673;1500)#2400#555#True#False#152";
            //temp = fileName.Split('#');
            //stroka1 = temp[0];
            //stroka3 = temp[1];
            //stroka4 = temp[2];
            //textBox1.Text = temp[3];
            //textBox2.Text = temp[4];
            //checkBox1.Checked = bool.Parse(temp[5]);
            //checkBox2.Checked = bool.Parse(temp[6]);
            //textBox4.Text = temp[7];
        }
Exemple #2
0
        public Form1(string fileName)
        {
            InitializeComponent();
            Xilog = new xilog();

            string[] temp = fileName.Split('.');
            if (temp[temp.Length - 1] == "FKP")
            {
                temp              = File.ReadAllText(fileName).Split('#');
                stroka1           = temp[0].Replace(",", ".");
                stroka2           = temp[1].Replace(",", ".");
                stroka3           = temp[2].Replace(",", ".");
                stroka4           = temp[3].Replace(",", ".");
                textBox1.Text     = temp[4];
                textBox2.Text     = temp[5];
                checkBox1.Checked = bool.Parse(temp[6]);
                checkBox2.Checked = bool.Parse(temp[7]);
                textBox4.Text     = temp[8];
            }
            else
            {
                Application.Exit();
            }
        }