public BrowseTablesEdit(AskingTable askingTable, String tableName)
        {
            InitializeComponent();
            this.formTitle.Text = tableName;
            this.askingTable    = askingTable;

            //開啟位置為滑鼠所在位置
            this.Location = new System.Drawing.Point(Control.MousePosition.X, Control.MousePosition.Y);
        }
        /*--- 建立新表 ------------------
         *
         *- 參數1: 問事表標籤
         *- 參數2: AskingTable物件
         *-----------------------------*/
        public AskingTablesForm(IconButton tableLabel, AskingTable table)
        {
            InitializeComponent();
            InitAskingTableView();
            this.tableLabel = tableLabel;
            this.table      = table;

            /*- 設定報名列的輸入框圓角 -*/
            RadiusTool rt = new RadiusTool();

            rt.SetControlRadius(panInput, 45);
        }
        public BrowseTablesForm(AskingTable askingTable)
        {
            InitializeComponent();
            this.askingTable = askingTable;

            /*--- 設定元件的Radius ---*/
            RadiusTool rt = new RadiusTool();

            rt.SetControlRadius(panInput, 50);

            /*--- 顯示全部問事表 ---*/
            ShowAllTables();
        }
        public MainForm()
        {
            InitializeComponent();

            /*--- 建立名稱為at的AskingTable物件
             *-『tableData[0]』:問事表按鈕
             *-『tableData[1]』:用來遮擋文字的lbl
             *-『tableData[2]』:展開及收合icon
             *-『tableData[3]』:問事表標籤區
             *-『tableData[4]』:主視窗工作區
             *----------------------------------------------*/
            ArrayList tableData = new ArrayList()
            {
                btnAskingTable, lblAskingTable, iconOnOff, panTablesArea, workDesktop
            };

            at = new AskingTable(tableData, formFun);
        }
        /*--- 開啟舊表 -----------------
         *
         *- 參數1: 問事表標籤
         *- 參數2: AskingTable物件
         *- 參數3: 問事表名稱
         *-----------------------------*/
        public AskingTablesForm(IconButton tableLabel, AskingTable table, string tableName)
        {
            InitializeComponent();
            InitAskingTableView();
            this.tableLabel     = tableLabel;
            this.table          = table;
            isSaved_askingTable = true; //問事表資料已儲存

            /*- 設定報名列的輸入框圓角 -*/
            RadiusTool rt = new RadiusTool();

            rt.SetControlRadius(panInput, 45);

            ShowAskingContents(tableName); //顯示問事資料

            /*- 顯示姓名、聯絡電話 -*/
            for (int i = 0; i < personalInfo_list.Count; i++)
            {
                string contactNum = personalInfo_list[i][0];         //取得聯絡編號
                string name       = ShowPersonalInfo(contactNum, i); //取得姓名
                personalInfo_list[i][1] = name;
            }
        }
Exemple #6
0
 public HomeForm(IconButton menuHomeBtn, AskingTable askingTable)
 {
     InitializeComponent();
     this.menuHomeBtn = menuHomeBtn;
     table            = askingTable;
 }
Exemple #7
0
 public NewTableForm(AskingTable askingTable)
 {
     InitializeComponent();
     this.askingTable = askingTable;
 }