示例#1
0
        private void btnSaveSql_Click(object sender, EventArgs e)
        {
            Config.ProfileName = textBoxProfileName.Text.Trim();

            Config.DotPrinterName = textBoxDotPrinter.Text.Trim();
            Config.IsServer       = ckBoxIsServer.Checked;
            Config.Database       = textBoxSqlDatabase.Text.Trim();
            Config.SharedDatabase = textBoxSharedDatabase.Text.Trim();

            Config.Local.ServerIP = textBoxSqlServerIP.Text.Trim();
            Config.Local.UserID   = textBoxSqlUserID.Text.Trim();
            Config.Local.Password = textBoxSqlPassword.Text.Trim();

            Config.EnableCloudSync = chBoxCloudSync.Checked;
            Config.Cloud.ServerIP  = textBoxSqlServerIPCloud.Text.Trim();
            Config.Cloud.UserID    = textBoxSqlUserIDCloud.Text.Trim();
            Config.Cloud.Password  = textBoxSqlPasswordCloud.Text.Trim();
            Config.Save();
            MessageBox.Show("SQL設定存檔完成! 重新啟動程式後, 設定方生效.");
        }
示例#2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     Config.DotPrinterName = textBoxDotPrinter.Text.Trim();
     Config.Save();
     MessageBox.Show("點陣印表机 設定存檔完成! 重新啟動程式後, 設定方生效.");
 }