예제 #1
0
 public JanrEdit(bool v, DataSet dataSet, Ed ed)
 {
     InitializeComponent();
     is_insert     = v;
     textBox1.Text = "";
     this.dataSet  = dataSet;
     edited        = ed;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #4
0
        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;
        }
예제 #5
0
 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;
 }
예제 #6
0
 public Zapis(DataSet data, Ed ed)
 {
     InitializeComponent();
     dataSet = data;
     edited  = ed;
 }
예제 #7
0
 public Sotrudnik(DataSet data, Ed ed)
 {
     InitializeComponent();
     dataSet = data;
     edited  = ed;
 }
예제 #8
0
 public Ispolnitel(DataSet data, Ed ed)
 {
     InitializeComponent();
     dataSet = data;
     edited  = ed;
 }