public JanrEdit(bool v, DataSet dataSet, Ed ed) { InitializeComponent(); is_insert = v; textBox1.Text = ""; this.dataSet = dataSet; edited = ed; }
public JanrEdit(bool v, BindingSource bindingSource, DataSet dataSet, Ed ed) { InitializeComponent(); is_insert = v; this.dataSet = dataSet; this.bindingSource = bindingSource; textBox1.Text = originalName = ((DataRowView)bindingSource.Current)[1].ToString(); edited = ed; }
public SotrudnikEdit(bool v, DataSet dataSet, Ed ed) { InitializeComponent(); is_insert = v; FamBox.Text = ImBox.Text = OtchBox.Text = ""; this.dataSet = dataSet; comboBox1.SelectedIndex = 0; edited = ed; }
public SotrudnikEdit(bool v, BindingSource bindingSource, DataSet dataSet, Ed ed) { InitializeComponent(); is_insert = v; this.dataSet = dataSet; this.bindingSource = bindingSource; Famoriginal = FamBox.Text = ((DataRowView)bindingSource.Current)[1].ToString(); Imoriginal = ImBox.Text = ((DataRowView)bindingSource.Current)[2].ToString(); Otchoriginal = OtchBox.Text = ((DataRowView)bindingSource.Current)[3].ToString(); Droriginal = dateTimePicker1.Value = DateTime.Parse(((DataRowView)bindingSource.Current)[4].ToString()); char p = Poloriginal = ((DataRowView)bindingSource.Current)[5].ToString()[0]; comboBox1.SelectedIndex = (p == 'м'?0:1); edited = ed; }
public ZapisEdit(bool v, BindingSource bindingSource, DataSet dataSet, int[] k, Ed ed) { InitializeComponent(); is_insert = v; this.dataSet = dataSet; this.bindingSource = bindingSource; keys = k; if (is_insert) { textBox1.Text = ""; } else { textBox1.Text = origstr = ((DataRowView)bindingSource.Current)["naim_zapis"].ToString(); dateTimePicker1.Value = origDate = DateTime.Parse(((DataRowView)bindingSource.Current)["data"].ToString()); } edited = ed; }
public Zapis(DataSet data, Ed ed) { InitializeComponent(); dataSet = data; edited = ed; }
public Sotrudnik(DataSet data, Ed ed) { InitializeComponent(); dataSet = data; edited = ed; }
public Ispolnitel(DataSet data, Ed ed) { InitializeComponent(); dataSet = data; edited = ed; }