示例#1
0
文件: Main.cs 项目: drog4/DrogsMotors
        private void newCarButton_Click(object sender, EventArgs e)
        {
            Form AddCars = new AddCars(this, null, s);

            AddCars.Owner = this;
            AddCars.ShowDialog();
            updateListView();
        }
示例#2
0
文件: Main.cs 项目: drog4/DrogsMotors
 private void carsView_MouseClick(object sender, MouseEventArgs e)
 {
     if (!admin)
     {
         string selected = carsView.SelectedItems[0].Text;
         Form   AddCars  = new AddCars(this, Cars.GetCar(int.Parse(selected)), s);
         AddCars.Owner = this;
         AddCars.ShowDialog();
         updateListView();
     }
 }