public frmMazmin(statusKind sta, mazminim mUpdate) { InitializeComponent(); this.myMazmin = mUpdate; this.myMazminims = new mazminimTable(); this.statusFrm = sta; }
public frmHazmana(statusKind sta) { InitializeComponent(); this.myHazmana = new hazmanot(); this.myHazmanots = new hazmanotTable(); myMazmin = new mazminim(); myMazminims = new mazminimTable(); this.statusfrm = sta; cmbMazmin.DataSource = new mazminimTable().getFullName(); cmbMazmin.DisplayMember = "fullName"; //"nameOfMazmin";"fullName"; cmbMazmin.ValueMember = "kodMaznim"; //לא מועיל //cmbMazmin.Text = "-בחר מזמין-"; }
private void frmListMazminim_Load(object sender, EventArgs e) { mazminimTable allMaz = new mazminimTable(); DataTable dtMazminim = allMaz.GetTableTrue(); dgvMazminim.DataSource = dtMazminim; dgvMazminim.Columns[0].Visible = false; dgvMazminim.Columns[1].HeaderText = "שם פרטי"; dgvMazminim.Columns[2].HeaderText = "שפ משפחה"; dgvMazminim.Columns[3].HeaderText = "מספר טלפון"; dgvMazminim.Columns[4].HeaderText = "טלפון נוסף"; dgvMazminim.Columns[5].HeaderText = "רחוב"; dgvMazminim.Columns[6].HeaderText = "מספר בית"; dgvMazminim.Columns[7].HeaderText = "עיר"; dgvMazminim.Columns[8].Visible = false; }