コード例 #1
0
        public Settings()
        {
            serverSelection1 = new Reclamation.TimeSeries.Forms.Hydromet.ServerSelection();
            InitializeComponent();
            ReadUserPref();
            Ready = true;
            var c = new HydrometNotifications.UserInterface.NotificationMain();

            c.Parent  = tabPageNotifications;
            c.Dock    = DockStyle.Fill;
            c.Visible = true;
        }
コード例 #2
0
ファイル: Settings.cs プロジェクト: dloney/HydrometTools
        public Settings(bool compilePublic = false)
        {
            serverSelection1 = new Reclamation.TimeSeries.Forms.Hydromet.ServerSelection();
            InitializeComponent();
            ReadUserPref();
            Ready = true;
            var c = new HydrometNotifications.UserInterface.NotificationMain();

            c.Parent  = tabPageNotifications;
            c.Dock    = DockStyle.Fill;
            c.Visible = true;
            if (compilePublic)
            {
                groupBox1.Visible = false;
                this.tabControl1.Controls.Remove(tabPageAlarms);
                this.tabControl1.Controls.Remove(tabPageLog);
                this.tabControl1.Controls.Remove(tabPageNotifications);
                this.checkBoxForceWebService.Checked = Convert.ToBoolean(UserPreference.Lookup("CompilePublic"));
            }
        }
コード例 #3
0
ファイル: Settings.cs プロジェクト: dloney/HydrometTools
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components               = new System.ComponentModel.Container();
     this.checkBoxHideStatus       = new System.Windows.Forms.CheckBox();
     this.checkBoxCompute          = new System.Windows.Forms.CheckBox();
     this.groupBox2                = new System.Windows.Forms.GroupBox();
     this.checkBoxAdmin            = new System.Windows.Forms.CheckBox();
     this.checkBoxMultipleYAxis    = new System.Windows.Forms.CheckBox();
     this.groupBox3                = new System.Windows.Forms.GroupBox();
     this.checkBoxAutoFlagDayfiles = new System.Windows.Forms.CheckBox();
     this.toolTip1                = new System.Windows.Forms.ToolTip(this.components);
     this.tabControl1             = new System.Windows.Forms.TabControl();
     this.tabPageGeneral          = new System.Windows.Forms.TabPage();
     this.groupBox1               = new System.Windows.Forms.GroupBox();
     this.buttonShowPassword      = new System.Windows.Forms.Button();
     this.label1                  = new System.Windows.Forms.Label();
     this.textBoxDbPassword       = new System.Windows.Forms.TextBox();
     this.serverSelection1        = new Reclamation.TimeSeries.Forms.Hydromet.ServerSelection();
     this.tabPageNotifications    = new System.Windows.Forms.TabPage();
     this.tabPageLog              = new System.Windows.Forms.TabPage();
     this.richTextBoxLog          = new System.Windows.Forms.RichTextBox();
     this.panel1                  = new System.Windows.Forms.Panel();
     this.buttonClearLog          = new System.Windows.Forms.Button();
     this.tabPageAlarms           = new System.Windows.Forms.TabPage();
     this.checkBoxForceWebService = new System.Windows.Forms.CheckBox();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.tabControl1.SuspendLayout();
     this.tabPageGeneral.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.tabPageLog.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // checkBoxHideStatus
     //
     this.checkBoxHideStatus.AutoSize = true;
     this.checkBoxHideStatus.Location = new System.Drawing.Point(11, 65);
     this.checkBoxHideStatus.Name     = "checkBoxHideStatus";
     this.checkBoxHideStatus.Size     = new System.Drawing.Size(111, 17);
     this.checkBoxHideStatus.TabIndex = 25;
     this.checkBoxHideStatus.Text     = "hide status dialog ";
     this.checkBoxHideStatus.UseVisualStyleBackColor = true;
     this.checkBoxHideStatus.CheckedChanged         += new System.EventHandler(this.checkBoxHideStatus_CheckedChanged);
     //
     // checkBoxCompute
     //
     this.checkBoxCompute.AutoSize = true;
     this.checkBoxCompute.Location = new System.Drawing.Point(6, 42);
     this.checkBoxCompute.Name     = "checkBoxCompute";
     this.checkBoxCompute.Size     = new System.Drawing.Size(124, 17);
     this.checkBoxCompute.TabIndex = 26;
     this.checkBoxCompute.Text     = "enable computations";
     this.checkBoxCompute.UseVisualStyleBackColor = true;
     this.checkBoxCompute.CheckedChanged         += new System.EventHandler(this.checkBoxCompute_CheckedChanged);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.checkBoxForceWebService);
     this.groupBox2.Controls.Add(this.checkBoxAdmin);
     this.groupBox2.Controls.Add(this.checkBoxCompute);
     this.groupBox2.Location = new System.Drawing.Point(305, 16);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(340, 101);
     this.groupBox2.TabIndex = 28;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "advanced";
     //
     // checkBoxAdmin
     //
     this.checkBoxAdmin.AutoSize = true;
     this.checkBoxAdmin.Location = new System.Drawing.Point(6, 19);
     this.checkBoxAdmin.Name     = "checkBoxAdmin";
     this.checkBoxAdmin.Size     = new System.Drawing.Size(164, 17);
     this.checkBoxAdmin.TabIndex = 27;
     this.checkBoxAdmin.Text     = "I\'m an expert show all options";
     this.checkBoxAdmin.UseVisualStyleBackColor = true;
     this.checkBoxAdmin.CheckedChanged         += new System.EventHandler(this.checkBoxAdmin_CheckedChanged);
     //
     // checkBoxMultipleYAxis
     //
     this.checkBoxMultipleYAxis.AutoSize = true;
     this.checkBoxMultipleYAxis.Location = new System.Drawing.Point(12, 19);
     this.checkBoxMultipleYAxis.Name     = "checkBoxMultipleYAxis";
     this.checkBoxMultipleYAxis.Size     = new System.Drawing.Size(173, 17);
     this.checkBoxMultipleYAxis.TabIndex = 37;
     this.checkBoxMultipleYAxis.Text     = "use multiple y axis  (on left side)";
     this.toolTip1.SetToolTip(this.checkBoxMultipleYAxis, "create multiple left vertical axes");
     this.checkBoxMultipleYAxis.UseVisualStyleBackColor = true;
     this.checkBoxMultipleYAxis.CheckedChanged         += new System.EventHandler(this.checkBoxMultipleYAxis_CheckedChanged);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.checkBoxAutoFlagDayfiles);
     this.groupBox3.Controls.Add(this.checkBoxMultipleYAxis);
     this.groupBox3.Controls.Add(this.checkBoxHideStatus);
     this.groupBox3.Location = new System.Drawing.Point(305, 123);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(340, 96);
     this.groupBox3.TabIndex = 38;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "other";
     //
     // checkBoxAutoFlagDayfiles
     //
     this.checkBoxAutoFlagDayfiles.AutoSize = true;
     this.checkBoxAutoFlagDayfiles.Location = new System.Drawing.Point(11, 42);
     this.checkBoxAutoFlagDayfiles.Name     = "checkBoxAutoFlagDayfiles";
     this.checkBoxAutoFlagDayfiles.Size     = new System.Drawing.Size(237, 17);
     this.checkBoxAutoFlagDayfiles.TabIndex = 38;
     this.checkBoxAutoFlagDayfiles.Text     = "automatically flag dayfiles with \'e\' during edits";
     this.toolTip1.SetToolTip(this.checkBoxAutoFlagDayfiles, "create multiple left vertical axes");
     this.checkBoxAutoFlagDayfiles.UseVisualStyleBackColor = true;
     this.checkBoxAutoFlagDayfiles.CheckedChanged         += new System.EventHandler(this.checkBoxAutoFlagDayfiles_CheckedChanged);
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tabPageGeneral);
     this.tabControl1.Controls.Add(this.tabPageNotifications);
     this.tabControl1.Controls.Add(this.tabPageLog);
     this.tabControl1.Controls.Add(this.tabPageAlarms);
     this.tabControl1.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location              = new System.Drawing.Point(0, 0);
     this.tabControl1.Name                  = "tabControl1";
     this.tabControl1.SelectedIndex         = 0;
     this.tabControl1.Size                  = new System.Drawing.Size(711, 511);
     this.tabControl1.TabIndex              = 40;
     this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
     //
     // tabPageGeneral
     //
     this.tabPageGeneral.Controls.Add(this.groupBox1);
     this.tabPageGeneral.Controls.Add(this.serverSelection1);
     this.tabPageGeneral.Controls.Add(this.groupBox3);
     this.tabPageGeneral.Controls.Add(this.groupBox2);
     this.tabPageGeneral.Location = new System.Drawing.Point(4, 22);
     this.tabPageGeneral.Name     = "tabPageGeneral";
     this.tabPageGeneral.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPageGeneral.Size     = new System.Drawing.Size(703, 485);
     this.tabPageGeneral.TabIndex = 0;
     this.tabPageGeneral.Text     = "general";
     this.tabPageGeneral.UseVisualStyleBackColor = true;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.buttonShowPassword);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.textBoxDbPassword);
     this.groupBox1.Location = new System.Drawing.Point(7, 253);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(293, 49);
     this.groupBox1.TabIndex = 42;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "relational database";
     //
     // buttonShowPassword
     //
     this.buttonShowPassword.Location = new System.Drawing.Point(212, 13);
     this.buttonShowPassword.Name     = "buttonShowPassword";
     this.buttonShowPassword.Size     = new System.Drawing.Size(75, 23);
     this.buttonShowPassword.TabIndex = 42;
     this.buttonShowPassword.Text     = "show";
     this.buttonShowPassword.UseVisualStyleBackColor = true;
     this.buttonShowPassword.Click += new System.EventHandler(this.buttonShowPassword_Click);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(9, 19);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(52, 13);
     this.label1.TabIndex = 41;
     this.label1.Text     = "password";
     //
     // textBoxDbPassword
     //
     this.textBoxDbPassword.Location     = new System.Drawing.Point(67, 16);
     this.textBoxDbPassword.Name         = "textBoxDbPassword";
     this.textBoxDbPassword.PasswordChar = '*';
     this.textBoxDbPassword.Size         = new System.Drawing.Size(139, 20);
     this.textBoxDbPassword.TabIndex     = 40;
     this.textBoxDbPassword.TextChanged += new System.EventHandler(this.textBoxDbPassword_TextChanged);
     //
     // serverSelection1
     //
     this.serverSelection1.Location = new System.Drawing.Point(7, 16);
     this.serverSelection1.Margin   = new System.Windows.Forms.Padding(2);
     this.serverSelection1.Name     = "serverSelection1";
     this.serverSelection1.Size     = new System.Drawing.Size(293, 232);
     this.serverSelection1.TabIndex = 39;
     //
     // tabPageNotifications
     //
     this.tabPageNotifications.Location = new System.Drawing.Point(4, 22);
     this.tabPageNotifications.Name     = "tabPageNotifications";
     this.tabPageNotifications.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPageNotifications.Size     = new System.Drawing.Size(703, 485);
     this.tabPageNotifications.TabIndex = 1;
     this.tabPageNotifications.Text     = "notifications";
     this.tabPageNotifications.UseVisualStyleBackColor = true;
     //
     // tabPageLog
     //
     this.tabPageLog.Controls.Add(this.richTextBoxLog);
     this.tabPageLog.Controls.Add(this.panel1);
     this.tabPageLog.Location = new System.Drawing.Point(4, 22);
     this.tabPageLog.Name     = "tabPageLog";
     this.tabPageLog.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPageLog.Size     = new System.Drawing.Size(703, 485);
     this.tabPageLog.TabIndex = 2;
     this.tabPageLog.Text     = "log details";
     this.tabPageLog.UseVisualStyleBackColor = true;
     //
     // richTextBoxLog
     //
     this.richTextBoxLog.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.richTextBoxLog.Location        = new System.Drawing.Point(3, 44);
     this.richTextBoxLog.Name            = "richTextBoxLog";
     this.richTextBoxLog.Size            = new System.Drawing.Size(697, 438);
     this.richTextBoxLog.TabIndex        = 2;
     this.richTextBoxLog.Text            = "";
     this.richTextBoxLog.VisibleChanged += new System.EventHandler(this.richTextBoxLog_VisibleChanged);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.buttonClearLog);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(3, 3);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(697, 41);
     this.panel1.TabIndex = 3;
     //
     // buttonClearLog
     //
     this.buttonClearLog.Location = new System.Drawing.Point(19, 12);
     this.buttonClearLog.Name     = "buttonClearLog";
     this.buttonClearLog.Size     = new System.Drawing.Size(75, 23);
     this.buttonClearLog.TabIndex = 0;
     this.buttonClearLog.Text     = "Clear";
     this.buttonClearLog.UseVisualStyleBackColor = true;
     this.buttonClearLog.Click += new System.EventHandler(this.buttonClearLog_Click);
     //
     // tabPageAlarms
     //
     this.tabPageAlarms.Location = new System.Drawing.Point(4, 22);
     this.tabPageAlarms.Name     = "tabPageAlarms";
     this.tabPageAlarms.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPageAlarms.Size     = new System.Drawing.Size(703, 485);
     this.tabPageAlarms.TabIndex = 3;
     this.tabPageAlarms.Text     = "alarms";
     this.tabPageAlarms.UseVisualStyleBackColor = true;
     //
     // checkBoxForceWebService
     //
     this.checkBoxForceWebService.AutoSize = true;
     this.checkBoxForceWebService.Location = new System.Drawing.Point(6, 65);
     this.checkBoxForceWebService.Name     = "checkBoxForceWebService";
     this.checkBoxForceWebService.Size     = new System.Drawing.Size(105, 17);
     this.checkBoxForceWebService.TabIndex = 28;
     this.checkBoxForceWebService.Text     = "Use web-service";
     this.checkBoxForceWebService.UseVisualStyleBackColor = true;
     this.checkBoxForceWebService.CheckedChanged         += new System.EventHandler(this.checkBoxForceWebService_CheckedChanged);
     //
     // Settings
     //
     this.Controls.Add(this.tabControl1);
     this.Name = "Settings";
     this.Size = new System.Drawing.Size(711, 511);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.tabControl1.ResumeLayout(false);
     this.tabPageGeneral.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.tabPageLog.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }