示例#1
0
文件: Form1.cs 项目: warisrana/ATA
        private void button10_Click(object sender, EventArgs e)
        {
            CompanyUI c = new CompanyUI();

            if (c != null)
            {
                c.ShowDialog();
            }
        }
示例#2
0
 private void TileInProviderAddNew_Click(object sender, EventArgs e)
 {
     try
     {
         CompanyUI c = new CompanyUI();
         c.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
示例#3
0
        internal void Cellcliick()
        {
            var value = WarGrid1.SelectedCells[0].Value.ToString();

            if (WarGrid1.SelectedCells[0].ColumnIndex == 0)
            {
                long         bookingid = long.Parse(WarGrid1.Rows[WarGrid1.SelectedCells[0].RowIndex].Cells[2].Value.ToString());
                PayablePayUI bk        = new PayablePayUI(bookingid);
                bk.ShowDialog();
            }
            else if (WarGrid1.SelectedCells[0].ColumnIndex == 1)
            {
                CompanyUI bk = new CompanyUI(long.Parse(value));
                bk.ShowDialog();
            }
            else if (WarGrid1.SelectedCells[0].ColumnIndex == 2)
            {
                BookingInfoUI b = new BookingInfoUI(long.Parse(value));
                b.ShowDialog();
            }
            else if (WarGrid1.SelectedCells[0].ColumnIndex == 3)
            {
            }
            else if (WarGrid1.SelectedCells[0].ColumnIndex == 4)
            {
            }
            else if (WarGrid1.SelectedCells[0].ColumnIndex == 5)
            {
            }
            else if (WarGrid1.SelectedCells[0].ColumnIndex == 6)
            {
            }
            else if (WarGrid1.SelectedCells[0].ColumnIndex == 7)
            {
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            Form f2 = new CompanyUI();

            f2.ShowDialog();
        }