public static Boolean flag_edit = false; //possibility for edit row public Work_Form() { //show authorization window Base_Form new_form = new Base_Form(); new_form.ShowDialog(); InitializeComponent(); }
//change profile private void button_change_profile_Click(object sender, EventArgs e) { string temp = Work_Form.login; //save current progile`s name Base_Form new_form = new Base_Form(); new_form.ShowDialog(); //show authorization window //if profile was changed, clear wrokspace if (Work_Form.login != temp) { table_name = ""; table_open = ""; data_grid.DataSource = null; data_grid.Rows.Clear(); label_table_name.Visible = false; } }