private void searchButton_Click_1(object sender, EventArgs e) { var newform = new searchForm(this.Text); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { comebackTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } }
private void searchButton_Click(object sender, EventArgs e) { var newform = new searchForm("ویرایش نامه ارسالی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } }
private void searchButton_Click(object sender, EventArgs e) { var newform = new searchForm("ویرایش اطلاعات مددکار"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { helperIdTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); updateButton.PerformClick(); } }
private void searchApplicantButton_Click(object sender, EventArgs e) { var newform = new searchForm("تقاضا جدید متقاضی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); // ExtensionFunction.PersianToEnglish(idTextbox.Text); } }
private void searchButton_Click(object sender, EventArgs e) { if (this.Text == "بررسی تقاضا" || this.Text == "ویرایش تقاضا") { var newform = new searchForm("ویرایش تقاضا"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6));; } } else if (this.Text == "ثبت ارائه معرفینامه" || this.Text == "ویرایش بررسی") { searchForm newform; if (this.Text == "ویرایش بررسی") { newform = new searchForm("ویرایش بررسی"); } else { newform = new searchForm("ثبت ارائه معرفینامه"); } newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6));; } } else if (this.Text == "ویرایش مصوبه") { var newform = new searchForm("ویرایش مصوبه"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6));; } } else { var newform = new searchForm("ویرایش ارائه معرفینامه"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6));; } } }
private void searchButton_Click(object sender, EventArgs e) { if (this.typ == "خانوار") { var newform = new searchForm("انتخاب خانوار"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else { var newform = new searchForm("ویرایش عضو"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } }
private void searchButton_Click(object sender, EventArgs e) { var newform = new searchForm(this.Name); newform.ShowDialog(this); }
private void searchButton_Click(object sender, EventArgs e) { var newform = new searchForm("setMarriageForm"); newform.ShowDialog(this); }
private void searchButton_Click(object sender, EventArgs e) { if (this.Text == "ویرایش کمک جمعی با مصوبه") { var newform = new searchForm("ویرایش کمک جمعی با مصوبه"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش کمک جمعی اتفاقی") { var newform = new searchForm("ویرایش کمک جمعی اتفاقی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ارائه کمک جمعی") { var newform = new searchForm("ارائه کمک جمعی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش فایلهای ارائه کمک جمعی") { var newform = new searchForm("ویرایش فایلهای ارائه کمک جمعی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "تایید کمک جمعی") { var newform = new searchForm("تایید کمک جمعی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش تایید کمک جمعی") { var newform = new searchForm("ویرایش تایید کمک جمعی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش کمک تحصیلی") { var newform = new searchForm("ویرایش کمک تحصیلی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ارائه کمک تحصیلی") { var newform = new searchForm("ارائه کمک تحصیلی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش فایلهای ارائه کمک تحصیلی") { var newform = new searchForm("ویرایش فایلهای ارائه کمک تحصیلی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "تایید کمک تحصیلی") { var newform = new searchForm("تایید کمک تحصیلی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش تایید کمک تحصیلی") { var newform = new searchForm("ویرایش تایید کمک تحصیلی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ثبت درخواست کمک ازدواج") { var newform = new searchForm("ثبت درخواست کمک ازدواج"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش درخواست کمک ازدواج") { var newform = new searchForm("ویرایش درخواست کمک ازدواج"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "بررسی درخواست کمک ازدواج") { var newform = new searchForm("بررسی درخواست کمک ازدواج"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش بررسی درخواست کمک ازدواج تاییدشده") { var newform = new searchForm("ویرایش بررسی درخواست کمک ازدواج"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش بررسی درخواست کمک ازدواج ردشده") { var newform = new searchForm("ویرایش بررسی درخواست کمک ازدواج ردشده"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ارسال معرفینامه جهیزیه") { var newform = new searchForm("ارسال معرفینامه جهیزیه"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش ارسال معرفینامه جهیزیه") { var newform = new searchForm("ویرایش ارسال معرفینامه جهیزیه"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "دریافت نتیجه معرفینامه جهیزیه") { var newform = new searchForm("دریافت نتیجه معرفینامه جهیزیه"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش نتیجه معرفینامه جهیزیه") { var newform = new searchForm("ویرایش نتیجه معرفینامه جهیزیه"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } else if (newform.Text.StartsWith("chooser")) { rad = true; idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(8)); } } else if (this.Text == "ارائه کمک ازدواج") { var newform = new searchForm("ارائه کمک ازدواج"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش ارائه کمک ازدواج") { var newform = new searchForm("ویرایش ارائه کمک ازدواج"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "تایید کمک ازدواج") { var newform = new searchForm("تایید کمک ازدواج"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش تایید کمک ازدواج") { var newform = new searchForm("ویرایش تایید کمک ازدواج"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ثبت درخواست کمک درمان") { var newform = new searchForm("ثبت درخواست کمک درمان"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش درخواست کمک درمان") { var newform = new searchForm("ویرایش درخواست کمک درمان"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "بررسی درخواست کمک درمان") { var newform = new searchForm("بررسی درخواست کمک درمان"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش بررسی درخواست کمک درمان تاییدشده") { var newform = new searchForm("ویرایش بررسی درخواست کمک درمان"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش بررسی درخواست کمک درمان ردشده") { var newform = new searchForm("ویرایش بررسی درخواست کمک درمان ردشده"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ارائه کمک درمان") { var newform = new searchForm("ارائه کمک درمان"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش ارائه کمک درمان") { var newform = new searchForm("ویرایش ارائه کمک درمان"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "تایید کمک درمان") { var newform = new searchForm("تایید کمک درمان"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش تایید کمک درمان") { var newform = new searchForm("ویرایش تایید کمک درمان"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش کمک متفرقه گروهی") { var newform = new searchForm("ویرایش کمک متفرقه گروهی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ارائه کمک متفرقه گروهی") { var newform = new searchForm("ارائه کمک متفرقه گروهی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش فایلهای ارائه کمک متفرقه گروهی") { var newform = new searchForm("ویرایش فایلهای ارائه کمک متفرقه گروهی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "تایید کمک متفرقه گروهی") { var newform = new searchForm("تایید کمک متفرقه گروهی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش تایید کمک متفرقه گروهی") { var newform = new searchForm("ویرایش تایید کمک متفرقه گروهی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ثبت درخواست کمک متفرقه فردی") { var newform = new searchForm("ثبت درخواست کمک متفرقه فردی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش درخواست کمک متفرقه فردی") { var newform = new searchForm("ویرایش درخواست کمک متفرقه فردی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "بررسی درخواست کمک متفرقه فردی") { var newform = new searchForm("بررسی درخواست کمک متفرقه فردی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش بررسی درخواست کمک متفرقه فردی تاییدشده") { var newform = new searchForm("ویرایش بررسی درخواست کمک متفرقه فردی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش بررسی درخواست کمک متفرقه فردی ردشده") { var newform = new searchForm("ویرایش بررسی درخواست کمک متفرقه فردی ردشده"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ارائه کمک متفرقه فردی") { var newform = new searchForm("ارائه کمک متفرقه فردی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش ارائه کمک متفرقه فردی") { var newform = new searchForm("ویرایش ارائه کمک متفرقه فردی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "تایید کمک متفرقه فردی") { var newform = new searchForm("تایید کمک متفرقه فردی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } else if (this.Text == "ویرایش تایید کمک متفرقه فردی") { var newform = new searchForm("ویرایش تایید کمک متفرقه فردی"); newform.ShowDialog(this); if (newform.Text.StartsWith("choose")) { idTextbox.Text = ExtensionFunction.EnglishToPersian(newform.Text.Substring(6)); } } }