private void button2_Click(object sender, EventArgs e)
 {
     if (saveFileDialog1.ShowDialog() == DialogResult.OK)
     {
         string path = saveFileDialog1.FileName;
         Program1.WriteToFileAllLines(path, textBoxText.Lines);
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         Program1 f = new Program1(openFileDialog1.FileName);
         textBoxText.Lines = f.ChangeLines(Convert.ToInt32(textBox_k.Text)).ToArray();
         openFileDialog1.Dispose();
     }
 }
예제 #3
0
        public Form1()
        {
            InitializeComponent();

            //Console.WriteLine("Hi Sulesh");

            MessageBox.Show("SS");

            Program1 xxx = new Program1();

            xxx.abc(5);
        }