コード例 #1
0
ファイル: Flowery.cs プロジェクト: StefanDiac/Flowery
 private void goToManageStoreForm()
 {
     try
     {
         OrdersManager frm = new OrdersManager(this);
         frm.Show();
         this.Hide();
     } catch (NoOrdersException exp)
     {
         MessageBox.Show("No orders have been placed. Please come back after an order has been registered");
     }
 }
コード例 #2
0
 private void finishOrderButton_Click(object sender, EventArgs e)
 {
     try
     {
         serializeOrders();
         if (callerForm.Enabled)
         {
             this.Close();
         }
         else
         {
             OrdersManager frm = new OrdersManager(callerForm);
             frm.Show();
             this.Close();
         }
     }
     catch (EmptyOrderException)
     {
         MessageBox.Show("Your Order Is Empty ! Please Add Some Items To It.");
     }
 }