public void save() { string tmp = ""; string tmp1 = " "; string url = string.Format(@"{0}\{1}", "file", "level.tt"); variants variant = new variants(); open_TO_file filet = new open_TO_file(); filet.GoToLevel("level.tt"); for (int i = 1; i <= 12; i++) { if (str == variant.SSR[i]) { i++; tmp = "radioButton" + i.ToString(); break; } } for (int i = 0; i < 6; i++) { tmp1 += filet.Mas[i] + "\r\n"; tmp1 = tmp1.Trim(' '); if (filet.Mas[i] == lev) { i = i + 1; filet.Mas[i] += ','; filet.Mas[i] += tmp + ",\r\n"; tmp1 += filet.Mas[i]; } } StreamWriter sev = new StreamWriter(url); sev.Write(tmp1); sev.Close(); }
public void save() { string temp = ""; string temp1 = " "; string url = string.Format(@"{0}\{1}", "file restaet", "YRAven-Slojnosti.tt"); variants varit = new variants(); open_TO_file filet = new open_TO_file(); filet.Open_ToGoo_mas("YRAven-Slojnosti.tt"); for (int i = 1; i <= 12; i++) { if (str == varit.SSR[i]) { i++; temp = "radioButton" + i.ToString(); break; } } for (int i = 0; i < 6; i++) { temp1 += filet.Mas[i] + "\r\n"; temp1 = temp1.Trim(' '); if (filet.Mas[i] == cl) { i = i + 1; filet.Mas[i] += ','; filet.Mas[i] += temp + ",\r\n"; temp1 += filet.Mas[i]; } } StreamWriter sev = new StreamWriter(url); sev.Write(temp1); sev.Close(); }
void Label2Click(object sender, EventArgs e) { number++; open_TO_file file = new open_TO_file(); file.GoToLevel("level.tt"); if (number == 3) { number = 0; } label1.Text = level[number]; file.Znaky(label1.Text); // CheckPuzel(file.SL); }
void Label3Click(object sender, EventArgs e) { open_TO_file file = new open_TO_file(); file.Open_ToGoo_mas("YRAven-Slojnosti.tt"); flog--; if (flog < 0) { flog = 2; } label1.Text = slognost[flog]; file.Resojes(label1.Text); mas_ok_pz(file.SL); }
void VariantsLoad(object sender, EventArgs e) { menu menu = new menu(); if (menu.ShowDialog() == DialogResult.Cancel) { close = true; this.Close(); } else if (menu.DialogResult == DialogResult.OK) { open_TO_file file = new open_TO_file(); file.GoToLevel("level.tt"); file.Znaky(label1.Text); //CheckPuzel(file.SL); } }
void VariantsLoad(object sender, EventArgs e) { menu men = new menu(); if (men.ShowDialog() == DialogResult.Cancel) { clos = true; this.Close(); } else if (men.DialogResult == DialogResult.OK) { open_TO_file file = new open_TO_file(); file.Open_ToGoo_mas("YRAven-Slojnosti.tt"); file.Resojes(label1.Text); mas_ok_pz(file.SL); } }
void Button1Click(object sender, EventArgs e) { if (tmp == true) { MainForm mainform = new MainForm(struck[index], label1.Text); this.Hide(); if (mainform.ShowDialog() == DialogResult.OK) { this.Close(); } else if (mainform.DialogResult == DialogResult.No) { open_TO_file to_file = new open_TO_file(); to_file.GoToLevel("level.tt"); to_file.Znaky(label1.Text); // CheckPuzel(to_file.SL); this.Visible = true; } } else { MessageBox.Show("You didn't choose", "Error"); } }
void Button1Click(object sender, EventArgs e) { if (cl == true) { MainForm MAns = new MainForm(struck[index], label1.Text); this.Hide(); if (MAns.ShowDialog() == DialogResult.OK) { this.Close(); } else if (MAns.DialogResult == DialogResult.No) { open_TO_file to_file = new open_TO_file(); to_file.Open_ToGoo_mas("YRAven-Slojnosti.tt"); to_file.Resojes(label1.Text); mas_ok_pz(to_file.SL); this.Visible = true; } } else { MessageBox.Show("Вы не выбрали карту", " ощибка"); } }