public Add_Sale(PL.Main_Form ff) { InitializeComponent(); this.Grid = ff; if (Grid.DATAGRID.RowCount != 0) { for (int x = 0; x < Grid.DATAGRID.Rows.Count; x++) { Datagridbook.Rows.Add(Grid.DATAGRID.Rows[x].Cells[0].Value); } } if (Grid.DataGridStudent.RowCount != 0) { for (int x = 0; x < Grid.DataGridStudent.Rows.Count; x++) { DatagridName.Rows.Add(Grid.DataGridStudent.Rows[x].Cells[0].Value); } } for (int x = 0; x < Grid.DATAGRID.Rows.Count; x++) { if (Datagridbook.CurrentRow.Cells[0].Value.ToString() == Grid.DATAGRID.Rows[x].Cells[0].Value.ToString()) { txtprise.Text = Grid.DATAGRID.Rows[x].Cells[3].Value.ToString(); } } }
private void timer1_Tick(object sender, EventArgs e) { gunaProgressBar1.Increment(1); label3.Text = "%" + gunaProgressBar1.Value.ToString(); if (gunaProgressBar1.Value == 100) { timer1.Stop(); PL.Main_Form PL = new PL.Main_Form(); PL.Label_User.Text = str; PL.Private.Text = str2; Transition.ShowSync(PL); // PL.ShowDialog(); Hide(); } }
public Add_Rent(PL.Main_Form gg) { InitializeComponent(); this.Grid = gg; if (Grid.DATAGRID.RowCount != 0) { for (int x = 0; x < Grid.DATAGRID.Rows.Count; x++) { DatagridBook.Rows.Add(Grid.DATAGRID.Rows[x].Cells[0].Value); } } if (Grid.DataGridStudent.RowCount != 0) { for (int x = 0; x < Grid.DataGridStudent.Rows.Count; x++) { DatagriadName1.Rows.Add(Grid.DataGridStudent.Rows[x].Cells[0].Value); } } }
public Add_User(PL.Main_Form ff) { InitializeComponent(); this.Grid = ff; }