Esempio n. 1
0
 public void execute(Form hander)
 {
     PayListForm mf = hander as PayListForm;
     if (mf != null){
         DataRowView dr = mf.listBox1.SelectedItem as DataRowView;
         if (dr == null) return; //指定的支付类型不在列表之中不显示输入框
         PayForm form = new PayForm(dr);
         form.ShowDialog();
         mf.presenter.getTable();
     }
     
 }
Esempio n. 2
0
        private void btn13_click(object sender, EventArgs e)    // 주문결제 버튼
        {
            if (lv.Items.Count == 0)
            {
                MessageBox.Show("상품을 선택해주세요.");
                return;
            }

            PayForm pf = new PayForm();

            pf.StartPosition = FormStartPosition.Manual;
            pf.Location      = new Point(parentForm.Location.X + (parentForm.Width / 2) - (pf.Width / 4), parentForm.Location.Y + (parentForm.Height / 2) - (pf.Height / 2));
            pf.ShowDialog();
            tt();
        }