Beispiel #1
0
 private void button_save_Click(object sender, EventArgs e)
 {
     if (saveFileDialog1.ShowDialog() == DialogResult.OK)
     {
         string path = saveFileDialog1.FileName;
         Work_with_Files.WriteToFileAllLines(path, textBox1.Lines);
     }
 }
 private void Save_button_Click(object sender, EventArgs e)
 {
     if (saveFileDialog1.ShowDialog() == DialogResult.OK)
     {
         Work_with_Files f = new Work_with_Files();
         f.SaveIntArr(result_textBox.Lines, saveFileDialog1.FileName);
     }
 }
Beispiel #3
0
 private void button_LoadFile_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         Work_with_Files f = new Work_with_Files(openFileDialog1.FileName);
         textBox_ShowText.Lines = f.Lines;
         openFileDialog1.Dispose();
     }
 }
 private void Load_button3_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         Work_with_Files f = new Work_with_Files(openFileDialog1.FileName);
         listofElements.Add(f);
         textBox3.Lines = f.Load_str_numb();
         openFileDialog1.Dispose();
     }
 }
 private void Read_btn_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         Work_with_Files f = new Work_with_Files(openFileDialog1.FileName);
         Q.InitQueue(f.IntLines.ToArray());
         Data_textbox.Lines = Q.GetstringQueue(Q);
         openFileDialog1.Dispose();
     }
 }
Beispiel #6
0
        private void button_high_Click(object sender, EventArgs e)
        {
            Work_with_Files f = new Work_with_Files(openFileDialog1.FileName);

            textBox1.Lines = (f.ChangeLines(Convert.ToInt32(textBox_K.Text), true));
        }