Ejemplo n.º 1
0
 public JanrEdit(bool v, DataSet dataSet, Ed ed)
 {
     InitializeComponent();
     is_insert     = v;
     textBox1.Text = "";
     this.dataSet  = dataSet;
     edited        = ed;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 6
0
 public Zapis(DataSet data, Ed ed)
 {
     InitializeComponent();
     dataSet = data;
     edited  = ed;
 }
Ejemplo n.º 7
0
 public Sotrudnik(DataSet data, Ed ed)
 {
     InitializeComponent();
     dataSet = data;
     edited  = ed;
 }
Ejemplo n.º 8
0
 public Ispolnitel(DataSet data, Ed ed)
 {
     InitializeComponent();
     dataSet = data;
     edited  = ed;
 }