Example #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();
        }
Example #2
0
 public FormThread(DrinkList form)
 {
     this.form   = form;
     this.thread = new Thread(new ThreadStart(this.Run));
 }