示例#1
0
 private void Confirm_Click(object sender, EventArgs e)
 {
     yarat = new faylYarat(fileName.Text);
     s     = fileName.Text;
     yarat.Create();
     form2.ShowDialog();
 }
示例#2
0
        private void Send_Click(object sender, EventArgs e)
        {
            s     = Form1.s;
            yarat = new faylYarat(s);
            yarat.Write(nameText.Text, surNameText.Text, commentText.Text);


            nameText.Text    = "";
            surNameText.Text = "";
            commentText.Text = "";
        }
示例#3
0
        private void Form3_Load(object sender, EventArgs e)
        {
            string s = Form1.s; int a = 0;

            yarat = new faylYarat(s);
            yarat.Read();
            while ((h = yarat.sr.ReadLine()) != null)
            {
                a = h.IndexOf('*');
                comboBox1.Items.Add(h.Substring(0, a));
            }
        }
示例#4
0
        private void Form3_Load(object sender, EventArgs e)
        {
            name      = Elements.element.myLabel("Adlar: ", 149, 48);
            name.Font = new Font(name.Font.FontFamily, 12);

            comment      = Elements.element.myLabel("Şərhlər: ", 391, 48);
            comment.Font = new Font(name.Font.FontFamily, 12);

            names = Elements.element.myComboBox("Ad seçin: ", 130, 21, 149, 82);
            names.SelectedIndexChanged += Names_SelectedIndexChanged;

            commentsList = Elements.element.myListBox(340, 150, 394, 82);

            this.Controls.Add(name);
            this.Controls.Add(comment);
            this.Controls.Add(names);
            this.Controls.Add(commentsList);


            string s = Form1.s; int a = 0, j = 0;

            yarat = new faylYarat(s);
            yarat.Read();
            while ((h = yarat.sr.ReadLine()) != null)
            {
                a = h.IndexOf('*');
                names.Items.Add(h.Substring(0, a));


                for (int m = 0; m < h.Length; m++)
                {
                    if (h[m] == '*')
                    {
                        j = m;
                    }
                }
                comments.Add(h.Substring(j + 1, h.Length - j - 1));
            }
        }