/*------ 建構子2 (從AskingTablesForm開啟)----------
  *
  *- 參數1: AskingTablesForm 物件 (問事表視窗)
  *- 參數2: SignUpForm (報名視窗)
  *------------------------------------------------*/
 public NewPersonalInfoForm(AskingTablesForm askingTablesForm, Form parentForm)
 {
     InitializeComponent();
     this.askingTablesForm = askingTablesForm;
     this.parentForm       = parentForm;
     isFromTableForm       = true;      //從AskingTablesForm開啟
     formTitle.Text        = "報名 - 新人"; //更改視窗標題
     btnAdd.ButtonText     = "報名";      //更改按鈕名稱
 }
Exemplo n.º 2
0
        /*--- 建構子2 --------------------------
         *
         *- 說明: 第一次新增
         *- 參數1: 聯絡編號
         *- 參數2: 備註
         *- 參數3: AskingTablesForm 物件
         *-------------------------------------*/
        public AddAskingContentForm(string contactNum, string remark, AskingTablesForm atForm)
        {
            InitializeComponent();
            this.contactNum = contactNum;
            txtRemark.Text  = remark;
            this.atForm     = atForm;

            ShowInfo();
        }
Exemplo n.º 3
0
 /*--- 建構子3 --------------
  *
  *- 說明: 編輯時
  *- 參數1: 問事資料
  *- 參數2: AskingTablesForm 物件
  *------------------------------*/
 public AddAskingContentForm(List <string> askingData, AskingTablesForm atForm)
 {
     InitializeComponent();
     this.contactNum   = askingData[0];                  //聯絡編號
     lblName.Text      = askingData[1];                  //姓名
     lblPhone.Text     = askingData[3];                  //聯絡電話
     txtContent.Text   = askingData[2];                  //紀錄事項
     txtRemark.Text    = askingData[4];                  //備註
     this.atForm       = atForm;
     formTitle.Text    = "編輯問事內容";                       //視窗標題
     btnAdd.ButtonText = "修改";                           //更改按鈕名稱
     btnAdd.Click     -= new EventHandler(btnAdd_Click); //移除新增事件
     btnAdd.Click     += new EventHandler(ModifyData);   //增加修改事件
 }
Exemplo n.º 4
0
 public OldPersonForm(AskingTablesForm askingTablesForm, Form parentForm)
 {
     InitializeComponent();
     this.askingTablesForm = askingTablesForm;
     this.parentForm       = parentForm;
 }
Exemplo n.º 5
0
 public SignUpForm(AskingTablesForm askingTablesForm)
 {
     InitializeComponent();
     this.askingTablesForm = askingTablesForm;
 }