Beispiel #1
0
        private void bindingNavigatorViewDrinksItem_Click(object sender, EventArgs e)
        {
            DataRow   row       = ((DataRowView)this.barsBindingSource.Current).Row;
            DrinkList drinkList = new DrinkList((int)row[Resource1.BarTableID], row[Resource1.BarTableName].ToString());

            drinkList.DrinkChanged += DrinkList_DrinkChanged;

            FormThread formThread = new FormThread(drinkList);

            this.BarChanged       += formThread.OnBarChanged;
            this.ParentFormClosed += formThread.ParentFormClosed;
            formThread.Start();
        }
Beispiel #2
0
 public void Start()
 {
     FormThread.Start();
 }