Example #1
0
 public static void SetTooltip(Control ctl, Phrase p, int show_duration = 3000)
 {
     MetroFramework.Components.MetroToolTip t = new MetroFramework.Components.MetroToolTip();
     t.ReshowDelay  = 1000;
     t.Theme        = Globals.MainForm.OptionsFile.Theme;
     t.UseFading    = false;
     t.AutoPopDelay = show_duration;
     t.InitialDelay = 1000;
     t.IsBalloon    = false;
     t.SetToolTip(ctl, Translator.Translate(p, Globals.MainForm.OptionsFile.SelectedLanguage));
 }
        private void CustomInitializeComponent()
        {
            //
            // Tooltip
            //
            metroToolTip = new MetroFramework.Components.MetroToolTip();
            metroToolTip.StyleManager = this.StyleManager;

            richTextBox.ReadOnly = true;
            richTextBox.LoadFile(config.ConfigReadWriter.PATHMETROUILICENSEREADME);

            ChangeLanguage(config.ConfigReadWriter.LANGUAGE); // Sprache aus config file lesen.

            //Icon definieren
            this.Icon = new System.Drawing.Icon(config.ConfigReadWriter.PATHICON);
        }
        private void CustomInitializeComponent(MetroFramework.Components.MetroStyleManager metroStyleManager)
        {
            // FORM
            this.StyleManager = metroStyleManager;

            //
            // Stylemanager
            //
            this.mlblConnect_1098.StyleManager    = metroStyleManager;
            this.mlblDbPassword_1093.StyleManager = metroStyleManager;
            this.mlblDbTable_1091.StyleManager    = metroStyleManager;
            this.mlblDbUser_1092.StyleManager     = metroStyleManager;
            this.mlblServer_1090.StyleManager     = metroStyleManager;

            this.mtxtbDbTable_1095.StyleManager   = metroStyleManager;
            this.mtxtbServer_1094.StyleManager    = metroStyleManager;
            this.mtxtDbPassword_1097.StyleManager = metroStyleManager;
            this.mtxtDbUser_1096.StyleManager     = metroStyleManager;

            this.mbtnConnect_1099.StyleManager = metroStyleManager;

            //
            // Tooltip
            //
            metroToolTip = new MetroFramework.Components.MetroToolTip();
            metroToolTip.StyleManager = metroStyleManager;

            //Icon definieren
            this.Icon = new System.Drawing.Icon(global.config.ConfigReadWriter.PATHICON);

            //
            // Metro Textbox aus config laden
            //
            mtxtbServer_1094.Text    = global.config.ConfigReadWriter.SQLSERVER;
            mtxtbDbTable_1095.Text   = global.config.ConfigReadWriter.SQLTABLENAME;
            mtxtDbUser_1096.Text     = global.config.ConfigReadWriter.SQLUSERID;
            mtxtDbPassword_1097.Text = global.config.ConfigReadWriter.SQLPASSWORD;
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="metroStyleManager"></param>
        /// <created>janzen_d,2018-09-17</created>
        private void CustomInitializeComponent(MetroFramework.Components.MetroStyleManager metroStyleManager)
        {
            //
            // Form Einstellungen
            //
            this.Dock = System.Windows.Forms.DockStyle.Fill;
            this.folderBrowserDialog.ShowNewFolderButton = false;

            //
            // StyleManager setzen
            //
            this.StyleManager = metroStyleManager;

            //
            // Tooltip
            //
            metroToolTip = new MetroFramework.Components.MetroToolTip();
            metroToolTip.StyleManager = this.StyleManager;

            //
            // Textbox
            //
            this.mtxtBox_TWPath_1038.Text = global.config.ConfigReadWriter.TWOPCPATH;

            //
            // Button
            //
            this.mbtnSave_1040.Click         += MbtnSave_1040_Click;
            this.mbtnSave_1040.Enabled        = false;
            this.mbtnSelectFolder_1039.Click += MbtnSelectFolder_1039_Click;
            //
            // gridlistid_1060
            //
            this.gridlistid_1060.Tag = 1060;
            //
            // gridmodulename_1044
            //
            this.gridmodulename_1044.Tag = 1044;
            //
            // gridvariablename_1061
            //
            this.gridvariablename_1061.Tag = 1061;
            //
            // gridpvbatchvariable_1062
            //
            this.gridpvbatchvariable_1062.Tag = 1062;
            //
            // gridpdacountertype_1063
            //
            this.gridpdacountertype_1063.Tag = 1063;
            //
            // gridtextid_1064
            //
            this.gridtextid_1064.Tag = 1064;
            //
            // gridcomment_1065
            //
            this.gridcomment_1065.Tag = 1065;
            //
            // gridopcdatatype_1066
            //
            this.gridopcdatatype_1066.Tag = 1066;
            //
            // gridopcrwu_1067
            //
            this.gridopcrwu_1067.Tag = 1067;
            //
            // gridopcalias_1068
            //
            this.gridopcalias_1068.Tag = 1068;
            //
            // gridopcactive_1069
            //
            this.gridopcactive_1069.Tag = 1069;
            //
            // gridarrysize_1070
            //
            this.gridarrysize_1070.Tag = 1070;
            //
            // gridsemantic_1071
            //
            this.gridsemantic_1071.Tag = 1071;
            //
            // griddcreadperiod_1072
            //
            this.griddcreadperiod_1072.Tag = 1072;
            //
            // griddclogthreshold_1073
            //
            this.griddclogthreshold_1073.Tag = 1073;
            //
            // griddcmaxpersistence_1074
            //
            this.griddcmaxpersistence_1074.Tag = 1074;
            //
            // gridpathpvbatch_1075
            //
            this.gridpathpvbatch_1075.Tag = 1075;
            //
            // gridpathpvequipment_1076
            //
            this.gridpathpvequipment_1076.Tag = 1076;
            //
            // gridpathpvprocess_1077
            //
            this.gridpathpvprocess_1077.Tag = 1077;
        }
Example #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="metroStyleManager"></param>
        /// <created>janzen_d,2018-09-17</created>
        private void CustomInitializeComponent(MetroFramework.Components.MetroStyleManager metroStyleManager)
        {
            //
            // Form Einstellungen
            //
            this.Dock = System.Windows.Forms.DockStyle.Fill;
            this.folderBrowserDialog.ShowNewFolderButton = false;

            //
            // StyleManager setzen
            //
            this.StyleManager = metroStyleManager;

            //
            // Tooltip
            //
            metroToolTip = new MetroFramework.Components.MetroToolTip();
            metroToolTip.StyleManager = this.StyleManager;

            //
            // gridmoduleid_1042
            //
            this.gridmoduleid_1042.Tag = 1042;
            //
            // gridfullpath_1043
            //
            this.gridfullpath_1043.Tag = 1043;
            //
            // gridmodulename_1044
            //
            this.gridmodulename_1044.Tag = 1044;
            //
            // gridTwequipmentfilepath_1045
            //
            this.gridTwequipmentfilepath_1045.Tag = 1045;
            //
            // gridListequipmentid_1046
            //
            this.gridListequipmentid_1046.Tag = 1046;
            //
            // gridADGroupprefix_1047
            //
            this.gridADGroupprefix_1047.Tag = 1047;
            //
            // gridLvl2_1048
            //
            this.gridLvl2_1048.Tag = 1048;
            //
            // gridLvl3_1049
            //
            this.gridLvl3_1049.Tag = 1049;
            //
            // gridLvl4_1050
            //
            this.gridLvl4_1050.Tag = 1050;
            //
            // gridLvl11_1051
            //
            this.gridLvl11_1051.Tag = 1051;
            //
            // gridLvl15_1052
            //
            this.gridLvl15_1052.Tag = 1052;
        }
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSpotifyAPICredentials));
     this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
     this.txtRedirectURL    = new MetroFramework.Controls.MetroTextBox();
     this.txtClientId       = new MetroFramework.Controls.MetroTextBox();
     this.txtSecretId       = new MetroFramework.Controls.MetroTextBox();
     this.lblClientId       = new MetroFramework.Controls.MetroLabel();
     this.lblSecretId       = new MetroFramework.Controls.MetroLabel();
     this.lblRedirectURL    = new MetroFramework.Controls.MetroLabel();
     this.lnkFAQSpotifyAPI  = new MetroFramework.Controls.MetroLink();
     this.tip = new MetroFramework.Components.MetroToolTip();
     this.lnkSpotifyAPIDashboard = new MetroFramework.Controls.MetroLink();
     this.tableLayoutPanel2.SuspendLayout();
     this.SuspendLayout();
     //
     // tableLayoutPanel2
     //
     this.tableLayoutPanel2.ColumnCount = 2;
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel2.Controls.Add(this.txtRedirectURL, 1, 2);
     this.tableLayoutPanel2.Controls.Add(this.txtClientId, 1, 0);
     this.tableLayoutPanel2.Controls.Add(this.txtSecretId, 1, 1);
     this.tableLayoutPanel2.Controls.Add(this.lblClientId, 0, 0);
     this.tableLayoutPanel2.Controls.Add(this.lblSecretId, 0, 1);
     this.tableLayoutPanel2.Controls.Add(this.lblRedirectURL, 0, 2);
     this.tableLayoutPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel2.Location = new System.Drawing.Point(10, 60);
     this.tableLayoutPanel2.Margin   = new System.Windows.Forms.Padding(0);
     this.tableLayoutPanel2.Name     = "tableLayoutPanel2";
     this.tableLayoutPanel2.Padding  = new System.Windows.Forms.Padding(0, 10, 0, 0);
     this.tableLayoutPanel2.RowCount = 4;
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel2.Size     = new System.Drawing.Size(400, 122);
     this.tableLayoutPanel2.TabIndex = 0;
     //
     // txtRedirectURL
     //
     this.txtRedirectURL.BackColor = System.Drawing.Color.Black;
     //
     //
     //
     this.txtRedirectURL.CustomButton.Image         = null;
     this.txtRedirectURL.CustomButton.Location      = new System.Drawing.Point(238, 1);
     this.txtRedirectURL.CustomButton.Name          = "";
     this.txtRedirectURL.CustomButton.Size          = new System.Drawing.Size(27, 27);
     this.txtRedirectURL.CustomButton.Style         = MetroFramework.MetroColorStyle.Blue;
     this.txtRedirectURL.CustomButton.TabIndex      = 1;
     this.txtRedirectURL.CustomButton.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.txtRedirectURL.CustomButton.UseSelectable = true;
     this.txtRedirectURL.CustomButton.Visible       = false;
     this.txtRedirectURL.Dock               = System.Windows.Forms.DockStyle.Fill;
     this.txtRedirectURL.FontSize           = MetroFramework.MetroTextBoxSize.Medium;
     this.txtRedirectURL.ForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.txtRedirectURL.Lines              = new string[0];
     this.txtRedirectURL.Location           = new System.Drawing.Point(131, 83);
     this.txtRedirectURL.MaxLength          = 32;
     this.txtRedirectURL.Name               = "txtRedirectURL";
     this.txtRedirectURL.PasswordChar       = '\0';
     this.txtRedirectURL.PromptText         = "PASTE_REDIRECT_URL_HERE";
     this.txtRedirectURL.ScrollBars         = System.Windows.Forms.ScrollBars.None;
     this.txtRedirectURL.SelectedText       = "";
     this.txtRedirectURL.SelectionLength    = 0;
     this.txtRedirectURL.SelectionStart     = 0;
     this.txtRedirectURL.ShortcutsEnabled   = true;
     this.txtRedirectURL.Size               = new System.Drawing.Size(266, 29);
     this.txtRedirectURL.Style              = MetroFramework.MetroColorStyle.Green;
     this.txtRedirectURL.TabIndex           = 40;
     this.txtRedirectURL.TextAlign          = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtRedirectURL.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.txtRedirectURL.UseCustomBackColor = true;
     this.txtRedirectURL.UseSelectable      = true;
     this.txtRedirectURL.WaterMark          = "PASTE_REDIRECT_URL_HERE";
     this.txtRedirectURL.WaterMarkColor     = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.txtRedirectURL.WaterMarkFont      = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtRedirectURL.TextChanged       += new System.EventHandler(this.TxtRedirectURL_TextChanged);
     //
     // txtClientId
     //
     this.txtClientId.BackColor = System.Drawing.Color.Black;
     //
     //
     //
     this.txtClientId.CustomButton.Image         = null;
     this.txtClientId.CustomButton.Location      = new System.Drawing.Point(238, 1);
     this.txtClientId.CustomButton.Name          = "";
     this.txtClientId.CustomButton.Size          = new System.Drawing.Size(27, 27);
     this.txtClientId.CustomButton.Style         = MetroFramework.MetroColorStyle.Blue;
     this.txtClientId.CustomButton.TabIndex      = 1;
     this.txtClientId.CustomButton.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.txtClientId.CustomButton.UseSelectable = true;
     this.txtClientId.CustomButton.Visible       = false;
     this.txtClientId.Dock               = System.Windows.Forms.DockStyle.Fill;
     this.txtClientId.FontSize           = MetroFramework.MetroTextBoxSize.Medium;
     this.txtClientId.ForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.txtClientId.Lines              = new string[0];
     this.txtClientId.Location           = new System.Drawing.Point(131, 13);
     this.txtClientId.MaxLength          = 32;
     this.txtClientId.Name               = "txtClientId";
     this.txtClientId.PasswordChar       = '\0';
     this.txtClientId.PromptText         = "PASTE_KEY_ID_HERE";
     this.txtClientId.ScrollBars         = System.Windows.Forms.ScrollBars.None;
     this.txtClientId.SelectedText       = "";
     this.txtClientId.SelectionLength    = 0;
     this.txtClientId.SelectionStart     = 0;
     this.txtClientId.ShortcutsEnabled   = true;
     this.txtClientId.Size               = new System.Drawing.Size(266, 29);
     this.txtClientId.Style              = MetroFramework.MetroColorStyle.Green;
     this.txtClientId.TabIndex           = 35;
     this.txtClientId.TextAlign          = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtClientId.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.txtClientId.UseCustomBackColor = true;
     this.txtClientId.UseSelectable      = true;
     this.txtClientId.WaterMark          = "PASTE_KEY_ID_HERE";
     this.txtClientId.WaterMarkColor     = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.txtClientId.WaterMarkFont      = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtClientId.TextChanged       += new System.EventHandler(this.TxtClientId_TextChanged);
     //
     // txtSecretId
     //
     this.txtSecretId.BackColor = System.Drawing.Color.Black;
     //
     //
     //
     this.txtSecretId.CustomButton.Image         = null;
     this.txtSecretId.CustomButton.Location      = new System.Drawing.Point(238, 1);
     this.txtSecretId.CustomButton.Name          = "";
     this.txtSecretId.CustomButton.Size          = new System.Drawing.Size(27, 27);
     this.txtSecretId.CustomButton.Style         = MetroFramework.MetroColorStyle.Blue;
     this.txtSecretId.CustomButton.TabIndex      = 1;
     this.txtSecretId.CustomButton.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.txtSecretId.CustomButton.UseSelectable = true;
     this.txtSecretId.CustomButton.Visible       = false;
     this.txtSecretId.Dock               = System.Windows.Forms.DockStyle.Fill;
     this.txtSecretId.FontSize           = MetroFramework.MetroTextBoxSize.Medium;
     this.txtSecretId.ForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.txtSecretId.Lines              = new string[0];
     this.txtSecretId.Location           = new System.Drawing.Point(131, 48);
     this.txtSecretId.MaxLength          = 32;
     this.txtSecretId.Name               = "txtSecretId";
     this.txtSecretId.PasswordChar       = '\0';
     this.txtSecretId.PromptText         = "PASTE_KEY_ID_HERE";
     this.txtSecretId.ScrollBars         = System.Windows.Forms.ScrollBars.None;
     this.txtSecretId.SelectedText       = "";
     this.txtSecretId.SelectionLength    = 0;
     this.txtSecretId.SelectionStart     = 0;
     this.txtSecretId.ShortcutsEnabled   = true;
     this.txtSecretId.Size               = new System.Drawing.Size(266, 29);
     this.txtSecretId.Style              = MetroFramework.MetroColorStyle.Green;
     this.txtSecretId.TabIndex           = 36;
     this.txtSecretId.TextAlign          = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtSecretId.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.txtSecretId.UseCustomBackColor = true;
     this.txtSecretId.UseSelectable      = true;
     this.txtSecretId.WaterMark          = "PASTE_KEY_ID_HERE";
     this.txtSecretId.WaterMarkColor     = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.txtSecretId.WaterMarkFont      = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtSecretId.TextChanged       += new System.EventHandler(this.TxtSecretId_TextChanged);
     //
     // lblClientId
     //
     this.lblClientId.AutoSize  = true;
     this.lblClientId.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.lblClientId.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.lblClientId.Location  = new System.Drawing.Point(3, 10);
     this.lblClientId.Name      = "lblClientId";
     this.lblClientId.Size      = new System.Drawing.Size(122, 35);
     this.lblClientId.TabIndex  = 37;
     this.lblClientId.Text      = "LBL_CLIENT_ID";
     this.lblClientId.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.lblClientId.Theme     = MetroFramework.MetroThemeStyle.Dark;
     //
     // lblSecretId
     //
     this.lblSecretId.AutoSize  = true;
     this.lblSecretId.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.lblSecretId.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.lblSecretId.Location  = new System.Drawing.Point(3, 45);
     this.lblSecretId.Name      = "lblSecretId";
     this.lblSecretId.Size      = new System.Drawing.Size(122, 35);
     this.lblSecretId.TabIndex  = 38;
     this.lblSecretId.Text      = "LBL_SECRET_ID";
     this.lblSecretId.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.lblSecretId.Theme     = MetroFramework.MetroThemeStyle.Dark;
     //
     // lblRedirectURL
     //
     this.lblRedirectURL.AutoSize  = true;
     this.lblRedirectURL.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.lblRedirectURL.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.lblRedirectURL.Location  = new System.Drawing.Point(3, 80);
     this.lblRedirectURL.Name      = "lblRedirectURL";
     this.lblRedirectURL.Size      = new System.Drawing.Size(122, 35);
     this.lblRedirectURL.TabIndex  = 39;
     this.lblRedirectURL.Text      = "LBL_REDIRECT_URL";
     this.lblRedirectURL.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.lblRedirectURL.Theme     = MetroFramework.MetroThemeStyle.Dark;
     //
     // lnkFAQSpotifyAPI
     //
     this.lnkFAQSpotifyAPI.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lnkFAQSpotifyAPI.Image              = global::EspionSpotify.Properties.Resources.faq;
     this.lnkFAQSpotifyAPI.ImageSize          = 12;
     this.lnkFAQSpotifyAPI.Location           = new System.Drawing.Point(369, 5);
     this.lnkFAQSpotifyAPI.Margin             = new System.Windows.Forms.Padding(0);
     this.lnkFAQSpotifyAPI.Name               = "lnkFAQSpotifyAPI";
     this.lnkFAQSpotifyAPI.Size               = new System.Drawing.Size(18, 18);
     this.lnkFAQSpotifyAPI.TabIndex           = 44;
     this.lnkFAQSpotifyAPI.UseCustomBackColor = true;
     this.lnkFAQSpotifyAPI.UseSelectable      = true;
     this.lnkFAQSpotifyAPI.Click             += new System.EventHandler(this.LnkFAQSpotifyAPI_Click);
     //
     // tip
     //
     this.tip.Style        = MetroFramework.MetroColorStyle.Default;
     this.tip.StyleManager = null;
     this.tip.Theme        = MetroFramework.MetroThemeStyle.Light;
     //
     // lnkSpotifyAPIDashboard
     //
     this.lnkSpotifyAPIDashboard.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lnkSpotifyAPIDashboard.Image              = global::EspionSpotify.Properties.Resources.spotify;
     this.lnkSpotifyAPIDashboard.ImageSize          = 14;
     this.lnkSpotifyAPIDashboard.Location           = new System.Drawing.Point(344, 5);
     this.lnkSpotifyAPIDashboard.Margin             = new System.Windows.Forms.Padding(0);
     this.lnkSpotifyAPIDashboard.Name               = "lnkSpotifyAPIDashboard";
     this.lnkSpotifyAPIDashboard.Size               = new System.Drawing.Size(18, 18);
     this.lnkSpotifyAPIDashboard.TabIndex           = 45;
     this.lnkSpotifyAPIDashboard.UseCustomBackColor = true;
     this.lnkSpotifyAPIDashboard.UseSelectable      = true;
     this.lnkSpotifyAPIDashboard.Click             += new System.EventHandler(this.LnkSpotifyAPIDashboard_Click);
     //
     // FrmSpotifyAPICredentials
     //
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.BorderStyle           = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle;
     this.ClientSize            = new System.Drawing.Size(420, 202);
     this.Controls.Add(this.lnkSpotifyAPIDashboard);
     this.Controls.Add(this.lnkFAQSpotifyAPI);
     this.Controls.Add(this.tableLayoutPanel2);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Movable       = false;
     this.Name          = "FrmSpotifyAPICredentials";
     this.Padding       = new System.Windows.Forms.Padding(10, 60, 10, 20);
     this.Resizable     = false;
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Style         = MetroFramework.MetroColorStyle.Green;
     this.Text          = "SPOTIFY_API_CREDENTIALS";
     this.Theme         = MetroFramework.MetroThemeStyle.Dark;
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FrmSpotifyAPICredentials_FormClosing);
     this.tableLayoutPanel2.ResumeLayout(false);
     this.tableLayoutPanel2.PerformLayout();
     this.ResumeLayout(false);
 }
Example #7
0
 /// <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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.button1             = new MetroFramework.Controls.MetroButton();
     this.richTextBox1        = new System.Windows.Forms.RichTextBox();
     this.button2             = new MetroFramework.Controls.MetroButton();
     this.metroTabControl1    = new MetroFramework.Controls.MetroTabControl();
     this.metroTabPage1       = new MetroFramework.Controls.MetroTabPage();
     this.btnSendChat         = new MetroFramework.Controls.MetroButton();
     this.txtBoxChatMsg       = new MetroFramework.Controls.MetroTextBox();
     this.metroTabPage2       = new MetroFramework.Controls.MetroTabPage();
     this.metroLink4          = new MetroFramework.Controls.MetroLink();
     this.metroLink3          = new MetroFramework.Controls.MetroLink();
     this.metroLink2          = new MetroFramework.Controls.MetroLink();
     this.metroLabel2         = new MetroFramework.Controls.MetroLabel();
     this.metroLabel1         = new MetroFramework.Controls.MetroLabel();
     this.metroLink5          = new MetroFramework.Controls.MetroLink();
     this.metroLink1          = new MetroFramework.Controls.MetroLink();
     this.metroPanel1         = new MetroFramework.Controls.MetroPanel();
     this.metroStyleManager1  = new MetroFramework.Components.MetroStyleManager(this.components);
     this.openFileDialog1     = new System.Windows.Forms.OpenFileDialog();
     this.metroToolTip1       = new MetroFramework.Components.MetroToolTip();
     this.toolStrip1          = new System.Windows.Forms.ToolStrip();
     this.toolStripLabel1     = new System.Windows.Forms.ToolStripLabel();
     this.metroStyleExtender1 = new MetroFramework.Components.MetroStyleExtender(this.components);
     this.button3             = new System.Windows.Forms.Button();
     this.metroTabControl1.SuspendLayout();
     this.metroTabPage1.SuspendLayout();
     this.metroTabPage2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).BeginInit();
     this.toolStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Location      = new System.Drawing.Point(665, 34);
     this.button1.Name          = "button1";
     this.button1.Size          = new System.Drawing.Size(80, 23);
     this.button1.TabIndex      = 0;
     this.button1.Text          = "Connect";
     this.button1.UseSelectable = true;
     this.button1.Click        += new System.EventHandler(this.Button1_Click);
     //
     // richTextBox1
     //
     this.metroStyleExtender1.SetApplyMetroTheme(this.richTextBox1, true);
     this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.richTextBox1.Font        = new System.Drawing.Font("Microsoft Sans Serif", 12F);
     this.richTextBox1.Location    = new System.Drawing.Point(3, 3);
     this.richTextBox1.Name        = "richTextBox1";
     this.richTextBox1.ReadOnly    = true;
     this.richTextBox1.Size        = new System.Drawing.Size(801, 348);
     this.richTextBox1.TabIndex    = 1;
     this.richTextBox1.Text        = "";
     //
     // button2
     //
     this.button2.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button2.Location      = new System.Drawing.Point(751, 34);
     this.button2.Name          = "button2";
     this.button2.Size          = new System.Drawing.Size(80, 23);
     this.button2.TabIndex      = 3;
     this.button2.Text          = "Disconnect";
     this.button2.UseSelectable = true;
     this.button2.Click        += new System.EventHandler(this.Button2_Click);
     //
     // metroTabControl1
     //
     this.metroTabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.metroTabControl1.Controls.Add(this.metroTabPage1);
     this.metroTabControl1.Controls.Add(this.metroTabPage2);
     this.metroTabControl1.FontSize       = MetroFramework.MetroTabControlSize.Tall;
     this.metroTabControl1.FontWeight     = MetroFramework.MetroTabControlWeight.Regular;
     this.metroTabControl1.Location       = new System.Drawing.Point(23, 63);
     this.metroTabControl1.Name           = "metroTabControl1";
     this.metroTabControl1.SelectedIndex  = 0;
     this.metroTabControl1.Size           = new System.Drawing.Size(815, 446);
     this.metroTabControl1.TabIndex       = 6;
     this.metroTabControl1.UseSelectable  = true;
     this.metroTabControl1.UseStyleColors = true;
     //
     // metroTabPage1
     //
     this.metroTabPage1.BackColor = System.Drawing.SystemColors.Control;
     this.metroTabPage1.Controls.Add(this.btnSendChat);
     this.metroTabPage1.Controls.Add(this.txtBoxChatMsg);
     this.metroTabPage1.Controls.Add(this.richTextBox1);
     this.metroTabPage1.HorizontalScrollbarBarColor         = true;
     this.metroTabPage1.HorizontalScrollbarHighlightOnWheel = false;
     this.metroTabPage1.HorizontalScrollbarSize             = 10;
     this.metroTabPage1.Location = new System.Drawing.Point(4, 44);
     this.metroTabPage1.Name     = "metroTabPage1";
     this.metroTabPage1.Size     = new System.Drawing.Size(807, 398);
     this.metroTabPage1.TabIndex = 0;
     this.metroTabPage1.Text     = "   Chat   ";
     this.metroTabPage1.VerticalScrollbarBarColor         = true;
     this.metroTabPage1.VerticalScrollbarHighlightOnWheel = false;
     this.metroTabPage1.VerticalScrollbarSize             = 10;
     //
     // btnSendChat
     //
     this.btnSendChat.Location      = new System.Drawing.Point(729, 357);
     this.btnSendChat.Name          = "btnSendChat";
     this.btnSendChat.Size          = new System.Drawing.Size(75, 38);
     this.btnSendChat.TabIndex      = 3;
     this.btnSendChat.Text          = "Chat";
     this.btnSendChat.UseSelectable = true;
     this.btnSendChat.Click        += new System.EventHandler(this.btnSendChat_Click);
     //
     // txtBoxChatMsg
     //
     //
     //
     //
     this.txtBoxChatMsg.CustomButton.Image         = null;
     this.txtBoxChatMsg.CustomButton.Location      = new System.Drawing.Point(684, 2);
     this.txtBoxChatMsg.CustomButton.Name          = "";
     this.txtBoxChatMsg.CustomButton.Size          = new System.Drawing.Size(33, 33);
     this.txtBoxChatMsg.CustomButton.Style         = MetroFramework.MetroColorStyle.Blue;
     this.txtBoxChatMsg.CustomButton.TabIndex      = 1;
     this.txtBoxChatMsg.CustomButton.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.txtBoxChatMsg.CustomButton.UseSelectable = true;
     this.txtBoxChatMsg.CustomButton.Visible       = false;
     this.txtBoxChatMsg.Lines            = new string[0];
     this.txtBoxChatMsg.Location         = new System.Drawing.Point(3, 357);
     this.txtBoxChatMsg.MaxLength        = 32767;
     this.txtBoxChatMsg.Multiline        = true;
     this.txtBoxChatMsg.Name             = "txtBoxChatMsg";
     this.txtBoxChatMsg.PasswordChar     = '\0';
     this.txtBoxChatMsg.PromptText       = "Click here to chat!";
     this.txtBoxChatMsg.ScrollBars       = System.Windows.Forms.ScrollBars.Vertical;
     this.txtBoxChatMsg.SelectedText     = "";
     this.txtBoxChatMsg.SelectionLength  = 0;
     this.txtBoxChatMsg.SelectionStart   = 0;
     this.txtBoxChatMsg.ShortcutsEnabled = true;
     this.txtBoxChatMsg.Size             = new System.Drawing.Size(720, 38);
     this.txtBoxChatMsg.TabIndex         = 2;
     this.txtBoxChatMsg.UseSelectable    = true;
     this.txtBoxChatMsg.UseStyleColors   = true;
     this.txtBoxChatMsg.WaterMark        = "Click here to chat!";
     this.txtBoxChatMsg.WaterMarkColor   = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.txtBoxChatMsg.WaterMarkFont    = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
     this.txtBoxChatMsg.Click           += new System.EventHandler(this.txtBoxChatMsg_Click);
     this.txtBoxChatMsg.KeyDown         += new System.Windows.Forms.KeyEventHandler(this.txtBoxChatMsg_KeyDown);
     //
     // metroTabPage2
     //
     this.metroTabPage2.Controls.Add(this.metroLink4);
     this.metroTabPage2.Controls.Add(this.metroLink3);
     this.metroTabPage2.Controls.Add(this.metroLink2);
     this.metroTabPage2.Controls.Add(this.metroLabel2);
     this.metroTabPage2.Controls.Add(this.metroLabel1);
     this.metroTabPage2.Controls.Add(this.metroLink5);
     this.metroTabPage2.Controls.Add(this.metroLink1);
     this.metroTabPage2.Controls.Add(this.metroPanel1);
     this.metroTabPage2.HorizontalScrollbarBarColor         = true;
     this.metroTabPage2.HorizontalScrollbarHighlightOnWheel = false;
     this.metroTabPage2.HorizontalScrollbarSize             = 10;
     this.metroTabPage2.Location = new System.Drawing.Point(4, 44);
     this.metroTabPage2.Name     = "metroTabPage2";
     this.metroTabPage2.Size     = new System.Drawing.Size(807, 398);
     this.metroTabPage2.TabIndex = 1;
     this.metroTabPage2.Text     = "   Settings   ";
     this.metroTabPage2.VerticalScrollbarBarColor         = true;
     this.metroTabPage2.VerticalScrollbarHighlightOnWheel = false;
     this.metroTabPage2.VerticalScrollbarSize             = 10;
     //
     // metroLink4
     //
     this.metroLink4.FontSize       = MetroFramework.MetroLinkSize.Medium;
     this.metroLink4.FontWeight     = MetroFramework.MetroLinkWeight.Light;
     this.metroLink4.Location       = new System.Drawing.Point(3, 225);
     this.metroLink4.Name           = "metroLink4";
     this.metroLink4.Size           = new System.Drawing.Size(108, 23);
     this.metroLink4.TabIndex       = 7;
     this.metroLink4.Text           = "   Timers";
     this.metroLink4.TextAlign      = System.Drawing.ContentAlignment.MiddleLeft;
     this.metroLink4.UseSelectable  = true;
     this.metroLink4.UseStyleColors = true;
     this.metroLink4.Click         += new System.EventHandler(this.metroLink1_Click_1);
     //
     // metroLink3
     //
     this.metroLink3.FontSize       = MetroFramework.MetroLinkSize.Medium;
     this.metroLink3.FontWeight     = MetroFramework.MetroLinkWeight.Light;
     this.metroLink3.Location       = new System.Drawing.Point(3, 191);
     this.metroLink3.Name           = "metroLink3";
     this.metroLink3.Size           = new System.Drawing.Size(108, 23);
     this.metroLink3.TabIndex       = 7;
     this.metroLink3.Tag            = "cc";
     this.metroLink3.Text           = "   Custom";
     this.metroLink3.TextAlign      = System.Drawing.ContentAlignment.MiddleLeft;
     this.metroLink3.UseSelectable  = true;
     this.metroLink3.UseStyleColors = true;
     this.metroLink3.Click         += new System.EventHandler(this.metroLink1_Click_1);
     //
     // metroLink2
     //
     this.metroLink2.FontSize       = MetroFramework.MetroLinkSize.Medium;
     this.metroLink2.FontWeight     = MetroFramework.MetroLinkWeight.Light;
     this.metroLink2.Location       = new System.Drawing.Point(3, 157);
     this.metroLink2.Name           = "metroLink2";
     this.metroLink2.Size           = new System.Drawing.Size(108, 23);
     this.metroLink2.TabIndex       = 7;
     this.metroLink2.Tag            = "pb";
     this.metroLink2.Text           = "   Prebuild";
     this.metroLink2.TextAlign      = System.Drawing.ContentAlignment.MiddleLeft;
     this.metroLink2.UseSelectable  = true;
     this.metroLink2.UseStyleColors = true;
     this.metroLink2.Click         += new System.EventHandler(this.metroLink1_Click_1);
     //
     // metroLabel2
     //
     this.metroLabel2.Location = new System.Drawing.Point(3, 21);
     this.metroLabel2.Name     = "metroLabel2";
     this.metroLabel2.Size     = new System.Drawing.Size(108, 23);
     this.metroLabel2.TabIndex = 6;
     this.metroLabel2.Text     = "General";
     //
     // metroLabel1
     //
     this.metroLabel1.Location = new System.Drawing.Point(3, 123);
     this.metroLabel1.Name     = "metroLabel1";
     this.metroLabel1.Size     = new System.Drawing.Size(108, 23);
     this.metroLabel1.TabIndex = 5;
     this.metroLabel1.Text     = "Commands";
     //
     // metroLink5
     //
     this.metroLink5.FontSize       = MetroFramework.MetroLinkSize.Medium;
     this.metroLink5.FontWeight     = MetroFramework.MetroLinkWeight.Light;
     this.metroLink5.Location       = new System.Drawing.Point(3, 89);
     this.metroLink5.Name           = "metroLink5";
     this.metroLink5.Size           = new System.Drawing.Size(108, 23);
     this.metroLink5.TabIndex       = 4;
     this.metroLink5.Tag            = "ds";
     this.metroLink5.Text           = "   Appearance";
     this.metroLink5.TextAlign      = System.Drawing.ContentAlignment.MiddleLeft;
     this.metroLink5.UseSelectable  = true;
     this.metroLink5.UseStyleColors = true;
     this.metroLink5.Click         += new System.EventHandler(this.metroLink1_Click_1);
     //
     // metroLink1
     //
     this.metroLink1.FontSize       = MetroFramework.MetroLinkSize.Medium;
     this.metroLink1.FontWeight     = MetroFramework.MetroLinkWeight.Light;
     this.metroLink1.Location       = new System.Drawing.Point(3, 55);
     this.metroLink1.Name           = "metroLink1";
     this.metroLink1.Size           = new System.Drawing.Size(108, 23);
     this.metroLink1.TabIndex       = 4;
     this.metroLink1.Tag            = "cs";
     this.metroLink1.Text           = "   Connection";
     this.metroLink1.TextAlign      = System.Drawing.ContentAlignment.MiddleLeft;
     this.metroLink1.UseSelectable  = true;
     this.metroLink1.UseStyleColors = true;
     this.metroLink1.Click         += new System.EventHandler(this.metroLink1_Click_1);
     //
     // metroPanel1
     //
     this.metroPanel1.HorizontalScrollbarBarColor         = true;
     this.metroPanel1.HorizontalScrollbarHighlightOnWheel = false;
     this.metroPanel1.HorizontalScrollbarSize             = 10;
     this.metroPanel1.Location = new System.Drawing.Point(117, 21);
     this.metroPanel1.Name     = "metroPanel1";
     this.metroPanel1.Size     = new System.Drawing.Size(690, 374);
     this.metroPanel1.TabIndex = 3;
     this.metroPanel1.VerticalScrollbarBarColor         = true;
     this.metroPanel1.VerticalScrollbarHighlightOnWheel = false;
     this.metroPanel1.VerticalScrollbarSize             = 10;
     //
     // metroStyleManager1
     //
     this.metroStyleManager1.Owner = this;
     //
     // openFileDialog1
     //
     this.openFileDialog1.DefaultExt = "*.txt";
     //
     // metroToolTip1
     //
     this.metroToolTip1.Style        = MetroFramework.MetroColorStyle.Blue;
     this.metroToolTip1.StyleManager = null;
     this.metroToolTip1.Theme        = MetroFramework.MetroThemeStyle.Light;
     //
     // toolStrip1
     //
     this.metroStyleExtender1.SetApplyMetroTheme(this.toolStrip1, true);
     this.toolStrip1.BackColor   = System.Drawing.Color.Black;
     this.toolStrip1.CanOverflow = false;
     this.toolStrip1.Dock        = System.Windows.Forms.DockStyle.Bottom;
     this.toolStrip1.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.toolStrip1.GripStyle   = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripLabel1
     });
     this.toolStrip1.Location   = new System.Drawing.Point(20, 512);
     this.toolStrip1.Name       = "toolStrip1";
     this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
     this.toolStrip1.Size       = new System.Drawing.Size(822, 25);
     this.toolStrip1.TabIndex   = 7;
     this.toolStrip1.Text       = "toolStrip1";
     this.metroToolTip1.SetToolTip(this.toolStrip1, "This is a single line log which displays information like \"Connected to #Channel\"" +
                                   "");
     //
     // toolStripLabel1
     //
     this.toolStripLabel1.ForeColor = System.Drawing.Color.White;
     this.toolStripLabel1.Name      = "toolStripLabel1";
     this.toolStripLabel1.Size      = new System.Drawing.Size(0, 22);
     //
     // button3
     //
     this.button3.Location = new System.Drawing.Point(584, 34);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(75, 23);
     this.button3.TabIndex = 8;
     this.button3.Text     = "button3";
     this.button3.UseVisualStyleBackColor = true;
     this.button3.Click += new System.EventHandler(this.button3_Click);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(862, 557);
     this.Controls.Add(this.button3);
     this.Controls.Add(this.toolStrip1);
     this.Controls.Add(this.metroTabControl1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.button2);
     this.HelpButton  = true;
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize = new System.Drawing.Size(862, 557);
     this.Name        = "Form1";
     this.Style       = this.metroStyleManager1.Style;
     this.Text        = "Twitcher";
     this.Load       += new System.EventHandler(this.Form1_Load);
     this.metroTabControl1.ResumeLayout(false);
     this.metroTabPage1.ResumeLayout(false);
     this.metroTabPage2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).EndInit();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #8
0
 /// <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();
     MetroFramework.Components.MetroToolTip metroToolTip1;
     this.metroStyleManager1            = new MetroFramework.Components.MetroStyleManager(this.components);
     this.filePathLabel                 = new MetroFramework.Controls.MetroLabel();
     this.inputBrowseButton             = new MetroFramework.Controls.MetroButton();
     this.shotBoundaryPanel             = new MetroFramework.Controls.MetroPanel();
     this.metroTabs                     = new MetroFramework.Controls.MetroTabControl();
     this.metroTabPage1                 = new MetroFramework.Controls.MetroTabPage();
     this.processProgressBar            = new MetroFramework.Controls.MetroProgressBar();
     this.keyframePanel                 = new MetroFramework.Controls.MetroPanel();
     this.metroLabel2                   = new MetroFramework.Controls.MetroLabel();
     this.shotBoundariesLabel           = new MetroFramework.Controls.MetroLabel();
     this.runButton                     = new MetroFramework.Controls.MetroButton();
     this.metroTabPage2                 = new MetroFramework.Controls.MetroTabPage();
     this.postTransitionTextBox         = new MetroFramework.Controls.MetroTextBox();
     this.constantATextBox              = new MetroFramework.Controls.MetroTextBox();
     this.metroLabel3                   = new MetroFramework.Controls.MetroLabel();
     this.constantALabel                = new MetroFramework.Controls.MetroLabel();
     this.defaultSearchPathBrowseButton = new MetroFramework.Controls.MetroButton();
     this.saveSettingsButton            = new MetroFramework.Controls.MetroButton();
     this.defaultSearchPathTextBox      = new MetroFramework.Controls.MetroTextBox();
     this.defaultSearchPathLabel        = new MetroFramework.Controls.MetroLabel();
     this.metroTabPage3                 = new MetroFramework.Controls.MetroTabPage();
     this.metroLabel1                   = new MetroFramework.Controls.MetroLabel();
     metroToolTip1 = new MetroFramework.Components.MetroToolTip();
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).BeginInit();
     this.metroTabs.SuspendLayout();
     this.metroTabPage1.SuspendLayout();
     this.metroTabPage2.SuspendLayout();
     this.metroTabPage3.SuspendLayout();
     this.SuspendLayout();
     //
     // metroStyleManager1
     //
     this.metroStyleManager1.Owner = this;
     this.metroStyleManager1.Style = MetroFramework.MetroColorStyle.Green;
     this.metroStyleManager1.Theme = MetroFramework.MetroThemeStyle.Light;
     //
     // filePathLabel
     //
     this.filePathLabel.Location  = new System.Drawing.Point(95, 7);
     this.filePathLabel.Name      = "filePathLabel";
     this.filePathLabel.Size      = new System.Drawing.Size(484, 29);
     this.filePathLabel.TabIndex  = 0;
     this.filePathLabel.Text      = "Click Browse to look for file/folder";
     this.filePathLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // inputBrowseButton
     //
     this.inputBrowseButton.Location = new System.Drawing.Point(3, 7);
     this.inputBrowseButton.Name     = "inputBrowseButton";
     this.inputBrowseButton.Size     = new System.Drawing.Size(86, 29);
     this.inputBrowseButton.TabIndex = 1;
     this.inputBrowseButton.Text     = "Browse";
     this.inputBrowseButton.Click   += new System.EventHandler(this.inputBrowseButton_Click);
     //
     // shotBoundaryPanel
     //
     this.shotBoundaryPanel.AutoScroll                          = true;
     this.shotBoundaryPanel.HorizontalScrollbar                 = true;
     this.shotBoundaryPanel.HorizontalScrollbarBarColor         = true;
     this.shotBoundaryPanel.HorizontalScrollbarHighlightOnWheel = false;
     this.shotBoundaryPanel.HorizontalScrollbarSize             = 10;
     this.shotBoundaryPanel.Location                          = new System.Drawing.Point(3, 65);
     this.shotBoundaryPanel.Name                              = "shotBoundaryPanel";
     this.shotBoundaryPanel.Size                              = new System.Drawing.Size(665, 148);
     this.shotBoundaryPanel.TabIndex                          = 2;
     this.shotBoundaryPanel.VerticalScrollbar                 = true;
     this.shotBoundaryPanel.VerticalScrollbarBarColor         = true;
     this.shotBoundaryPanel.VerticalScrollbarHighlightOnWheel = false;
     this.shotBoundaryPanel.VerticalScrollbarSize             = 10;
     //
     // metroTabs
     //
     this.metroTabs.Controls.Add(this.metroTabPage1);
     this.metroTabs.Controls.Add(this.metroTabPage2);
     this.metroTabs.Controls.Add(this.metroTabPage3);
     this.metroTabs.Location      = new System.Drawing.Point(23, 63);
     this.metroTabs.Name          = "metroTabs";
     this.metroTabs.SelectedIndex = 1;
     this.metroTabs.Size          = new System.Drawing.Size(679, 482);
     this.metroTabs.TabIndex      = 3;
     //
     // metroTabPage1
     //
     this.metroTabPage1.Controls.Add(this.processProgressBar);
     this.metroTabPage1.Controls.Add(this.keyframePanel);
     this.metroTabPage1.Controls.Add(this.metroLabel2);
     this.metroTabPage1.Controls.Add(this.shotBoundariesLabel);
     this.metroTabPage1.Controls.Add(this.runButton);
     this.metroTabPage1.Controls.Add(this.shotBoundaryPanel);
     this.metroTabPage1.Controls.Add(this.filePathLabel);
     this.metroTabPage1.Controls.Add(this.inputBrowseButton);
     this.metroTabPage1.HorizontalScrollbarBarColor = true;
     this.metroTabPage1.Location = new System.Drawing.Point(4, 35);
     this.metroTabPage1.Name     = "metroTabPage1";
     this.metroTabPage1.Size     = new System.Drawing.Size(671, 443);
     this.metroTabPage1.TabIndex = 0;
     this.metroTabPage1.Text     = "Home";
     this.metroTabPage1.VerticalScrollbarBarColor = true;
     //
     // processProgressBar
     //
     this.processProgressBar.Location = new System.Drawing.Point(3, 417);
     this.processProgressBar.Name     = "processProgressBar";
     this.processProgressBar.Size     = new System.Drawing.Size(665, 23);
     this.processProgressBar.TabIndex = 7;
     //
     // keyframePanel
     //
     this.keyframePanel.AutoScroll                          = true;
     this.keyframePanel.HorizontalScrollbar                 = true;
     this.keyframePanel.HorizontalScrollbarBarColor         = true;
     this.keyframePanel.HorizontalScrollbarHighlightOnWheel = false;
     this.keyframePanel.HorizontalScrollbarSize             = 10;
     this.keyframePanel.Location                          = new System.Drawing.Point(3, 249);
     this.keyframePanel.Name                              = "keyframePanel";
     this.keyframePanel.Size                              = new System.Drawing.Size(665, 148);
     this.keyframePanel.TabIndex                          = 3;
     this.keyframePanel.VerticalScrollbar                 = true;
     this.keyframePanel.VerticalScrollbarBarColor         = true;
     this.keyframePanel.VerticalScrollbarHighlightOnWheel = false;
     this.keyframePanel.VerticalScrollbarSize             = 10;
     //
     // metroLabel2
     //
     this.metroLabel2.AutoSize = true;
     this.metroLabel2.Location = new System.Drawing.Point(3, 227);
     this.metroLabel2.Name     = "metroLabel2";
     this.metroLabel2.Size     = new System.Drawing.Size(69, 19);
     this.metroLabel2.TabIndex = 6;
     this.metroLabel2.Text     = "Keyframes";
     //
     // shotBoundariesLabel
     //
     this.shotBoundariesLabel.AutoSize = true;
     this.shotBoundariesLabel.Location = new System.Drawing.Point(3, 43);
     this.shotBoundariesLabel.Name     = "shotBoundariesLabel";
     this.shotBoundariesLabel.Size     = new System.Drawing.Size(104, 19);
     this.shotBoundariesLabel.TabIndex = 5;
     this.shotBoundariesLabel.Text     = "Shot Boundaries";
     //
     // runButton
     //
     this.runButton.Location = new System.Drawing.Point(585, 7);
     this.runButton.Name     = "runButton";
     this.runButton.Size     = new System.Drawing.Size(86, 29);
     this.runButton.TabIndex = 4;
     this.runButton.Text     = "Run";
     this.runButton.Click   += new System.EventHandler(this.runButton_Click);
     //
     // metroTabPage2
     //
     this.metroTabPage2.Controls.Add(this.postTransitionTextBox);
     this.metroTabPage2.Controls.Add(this.constantATextBox);
     this.metroTabPage2.Controls.Add(this.metroLabel3);
     this.metroTabPage2.Controls.Add(this.constantALabel);
     this.metroTabPage2.Controls.Add(this.defaultSearchPathBrowseButton);
     this.metroTabPage2.Controls.Add(this.saveSettingsButton);
     this.metroTabPage2.Controls.Add(this.defaultSearchPathTextBox);
     this.metroTabPage2.Controls.Add(this.defaultSearchPathLabel);
     this.metroTabPage2.HorizontalScrollbarBarColor = true;
     this.metroTabPage2.Location = new System.Drawing.Point(4, 35);
     this.metroTabPage2.Name     = "metroTabPage2";
     this.metroTabPage2.Size     = new System.Drawing.Size(671, 443);
     this.metroTabPage2.TabIndex = 1;
     this.metroTabPage2.Text     = "Settings";
     this.metroTabPage2.VerticalScrollbarBarColor = true;
     //
     // postTransitionTextBox
     //
     this.postTransitionTextBox.Location = new System.Drawing.Point(217, 90);
     this.postTransitionTextBox.Name     = "postTransitionTextBox";
     this.postTransitionTextBox.Size     = new System.Drawing.Size(291, 23);
     this.postTransitionTextBox.TabIndex = 9;
     metroToolTip1.SetToolTip(this.postTransitionTextBox, "Max no. of average frame-to-frame difference\r\nbetween detected transitions.");
     //
     // constantATextBox
     //
     this.constantATextBox.Location = new System.Drawing.Point(217, 51);
     this.constantATextBox.Name     = "constantATextBox";
     this.constantATextBox.Size     = new System.Drawing.Size(291, 23);
     this.constantATextBox.TabIndex = 8;
     metroToolTip1.SetToolTip(this.constantATextBox, "Influences camera break threshold");
     //
     // metroLabel3
     //
     this.metroLabel3.AutoSize = true;
     this.metroLabel3.Location = new System.Drawing.Point(4, 94);
     this.metroLabel3.Name     = "metroLabel3";
     this.metroLabel3.Size     = new System.Drawing.Size(192, 19);
     this.metroLabel3.TabIndex = 7;
     this.metroLabel3.Text     = "Post Transition Frame Tolerance";
     metroToolTip1.SetToolTip(this.metroLabel3, "Max no. of average frame-to-frame difference\r\nbetween detected transitions.\r\n");
     //
     // constantALabel
     //
     this.constantALabel.AutoSize = true;
     this.constantALabel.Location = new System.Drawing.Point(4, 55);
     this.constantALabel.Name     = "constantALabel";
     this.constantALabel.Size     = new System.Drawing.Size(113, 19);
     this.constantALabel.TabIndex = 6;
     this.constantALabel.Text     = "Constant Value (a)";
     metroToolTip1.SetToolTip(this.constantALabel, "Influences camera break threshold");
     //
     // defaultSearchPathBrowseButton
     //
     this.defaultSearchPathBrowseButton.Location = new System.Drawing.Point(514, 9);
     this.defaultSearchPathBrowseButton.Name     = "defaultSearchPathBrowseButton";
     this.defaultSearchPathBrowseButton.Size     = new System.Drawing.Size(86, 29);
     this.defaultSearchPathBrowseButton.TabIndex = 5;
     this.defaultSearchPathBrowseButton.Text     = "Browse";
     this.defaultSearchPathBrowseButton.Click   += new System.EventHandler(this.defaultSearchPathBrowseButton_Click);
     //
     // saveSettingsButton
     //
     this.saveSettingsButton.Location = new System.Drawing.Point(3, 164);
     this.saveSettingsButton.Name     = "saveSettingsButton";
     this.saveSettingsButton.Size     = new System.Drawing.Size(86, 29);
     this.saveSettingsButton.TabIndex = 4;
     this.saveSettingsButton.Text     = "Save";
     this.saveSettingsButton.Click   += new System.EventHandler(this.saveSettingsButton_Click);
     //
     // defaultSearchPathTextBox
     //
     this.defaultSearchPathTextBox.Location = new System.Drawing.Point(217, 12);
     this.defaultSearchPathTextBox.Name     = "defaultSearchPathTextBox";
     this.defaultSearchPathTextBox.Size     = new System.Drawing.Size(291, 23);
     this.defaultSearchPathTextBox.TabIndex = 3;
     metroToolTip1.SetToolTip(this.defaultSearchPathTextBox, "Initial query search directory");
     //
     // defaultSearchPathLabel
     //
     this.defaultSearchPathLabel.AutoSize = true;
     this.defaultSearchPathLabel.Location = new System.Drawing.Point(4, 16);
     this.defaultSearchPathLabel.Name     = "defaultSearchPathLabel";
     this.defaultSearchPathLabel.Size     = new System.Drawing.Size(122, 19);
     this.defaultSearchPathLabel.TabIndex = 2;
     this.defaultSearchPathLabel.Text     = "Default Search Path";
     metroToolTip1.SetToolTip(this.defaultSearchPathLabel, "Initial query search directory");
     //
     // metroTabPage3
     //
     this.metroTabPage3.Controls.Add(this.metroLabel1);
     this.metroTabPage3.HorizontalScrollbarBarColor = true;
     this.metroTabPage3.Location = new System.Drawing.Point(4, 35);
     this.metroTabPage3.Name     = "metroTabPage3";
     this.metroTabPage3.Size     = new System.Drawing.Size(671, 443);
     this.metroTabPage3.TabIndex = 2;
     this.metroTabPage3.Text     = "About";
     this.metroTabPage3.VerticalScrollbarBarColor = true;
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.Location = new System.Drawing.Point(3, 29);
     this.metroLabel1.Name     = "metroLabel1";
     this.metroLabel1.Size     = new System.Drawing.Size(510, 152);
     this.metroLabel1.TabIndex = 2;
     this.metroLabel1.Text     = "CSC741M MP2\r\n\r\nDeveloped and Implemented by: LIVELO, Evan Dennison S. and VER, An" +
                                 "drea Nicole O.\r\nSubmitted to: Dr. Conrado Ruiz Jr.\r\n\r\nT1 AY 2016-2017\r\n\r\n";
     //
     // MainView
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(725, 568);
     this.Controls.Add(this.metroTabs);
     this.Name = "MainView";
     this.Text = "Video Segmentor";
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).EndInit();
     this.metroTabs.ResumeLayout(false);
     this.metroTabPage1.ResumeLayout(false);
     this.metroTabPage1.PerformLayout();
     this.metroTabPage2.ResumeLayout(false);
     this.metroTabPage2.PerformLayout();
     this.metroTabPage3.ResumeLayout(false);
     this.metroTabPage3.PerformLayout();
     this.ResumeLayout(false);
 }
        private void CustomInitializeComponent()
        {
            try
            {
                // init logger
                global.log.MetroLog.INSTANCE.SetConsole(richTextBox_Info, statusprgtxt, statusprgbar);

                //
                // Tooltip
                //
                metroToolTip = new MetroFramework.Components.MetroToolTip();
                metroToolTip.StyleManager = this.StyleManager;

                // Thread start for subroutine
                System.Threading.Thread threadLanguage = new System.Threading.Thread(new System.Threading.ThreadStart(MetroMain.ReadXml));
                threadLanguage.Start();
                global.log.MetroLog.INSTANCE.WriteLine("Get Language data from file.", global.log.MetroLog.LogType.INFO);

                // Menubar aufbauen
                toolStripSeparator = new System.Windows.Forms.ToolStripSeparator();
                //Menu1
                toolStripMenuItemFile     = new System.Windows.Forms.ToolStripMenuItem("Datei_1002");
                toolStripMenuItemFile.Tag = 1002;
                menuBar.Items.Add(toolStripMenuItemFile);
                toolStripMenuItemSave     = new System.Windows.Forms.ToolStripMenuItem("Speichern_1004");
                toolStripMenuItemSave.Tag = 1004;
                toolStripMenuItemFile.DropDownItems.Add(toolStripMenuItemSave);
                toolStripMenuItemSave.Click += ToolStripMenuItemSave_Click;
                //Menu2
                toolStripMenuItemOptions     = new System.Windows.Forms.ToolStripMenuItem("Optionen_1003");
                toolStripMenuItemOptions.Tag = 1003;
                menuBar.Items.Add(toolStripMenuItemOptions);
                toolStripMenuItemLanguage     = new System.Windows.Forms.ToolStripMenuItem("Sprachen_1005");
                toolStripMenuItemLanguage.Tag = 1005;
                toolStripMenuItemOptions.DropDownItems.Add(toolStripMenuItemLanguage);
                toolStripMenuItemDesign     = new System.Windows.Forms.ToolStripMenuItem("Design_1016");
                toolStripMenuItemDesign.Tag = 1016;
                toolStripMenuItemOptions.DropDownItems.Add(toolStripMenuItemDesign);
                toolStripMenuItemStyle     = new System.Windows.Forms.ToolStripMenuItem("Style_1017");
                toolStripMenuItemStyle.Tag = 1017;
                toolStripMenuItemDesign.DropDownItems.Add(toolStripMenuItemStyle);
                toolStripMenuItemStyle.Click += ToolStripMenuItemStyle_Click;
                toolStripMenuItemTheme        = new System.Windows.Forms.ToolStripMenuItem("Theme_1018");
                toolStripMenuItemTheme.Tag    = 1018;
                toolStripMenuItemDesign.DropDownItems.Add(toolStripMenuItemTheme);
                toolStripMenuItemTheme.Click       += ToolStripMenuItemTheme_Click;
                toolStripMenuItemSqlConnectForm     = new System.Windows.Forms.ToolStripMenuItem("SqlConnect_1088");
                toolStripMenuItemSqlConnectForm.Tag = 1088;
                toolStripMenuItemOptions.DropDownItems.Add(toolStripMenuItemSqlConnectForm);
                //toolStripMenuItemSqlConnectForm.Click += ToolStripMenuItemSqlConnectForm_Click;
                toolStripMenuItemSqlConnectForm.Enabled = false;
                //Menu3
                toolStripMenuItemInfo     = new System.Windows.Forms.ToolStripMenuItem("Info_1012");
                toolStripMenuItemInfo.Tag = 1012;
                menuBar.Items.Add(toolStripMenuItemInfo);
                toolStripMenuItemLicense     = new System.Windows.Forms.ToolStripMenuItem("Lizenzen_1013");
                toolStripMenuItemLicense.Tag = 1013;
                toolStripMenuItemInfo.DropDownItems.Add(toolStripMenuItemLicense);
                //TODO toolStripMenuItemInfo.DropDownItems.Add(toolStripSeparator);
                toolStripMenuItemLicenseMetroDesignS     = new System.Windows.Forms.ToolStripMenuItem("MetroUI_1014");
                toolStripMenuItemLicenseMetroDesignS.Tag = 1014;
                toolStripMenuItemLicense.DropDownItems.Add(toolStripMenuItemLicenseMetroDesignS);
                toolStripMenuItemLicenseMetroDesignS.Click += ToolStripMenuItemLicenseMetroDesignS_Click;
                toolStripMenuItemRegisterierung             = new System.Windows.Forms.ToolStripMenuItem("Register_1019");
                toolStripMenuItemRegisterierung.Tag         = 1019;
                toolStripMenuItemRegisterierung.Click      += ToolStripMenuItemRegisterierung_Click;
                toolStripMenuItemInfo.DropDownItems.Add(toolStripMenuItemRegisterierung);

                //
                // Panels
                //
                pnlTwAd = new panel.TW_AD(metroStyleManager);
                tabTwad_1037.Controls.Add(pnlTwAd);
                pnlTwSTOPC = new panel.TW_STOPC(metroStyleManager);
                tabTwstopc_1059.Controls.Add(pnlTwSTOPC);

                //
                // Forms
                //
                formSQLConnection = new forms.Form_SQLConnection(this.metroStyleManager);


                // Menubar Sprachen aufbauen
                while (global.language.LanguageHandler.XMLREADISFINISH)
                {
                }                                                           // warten bis Lesevorgang abgeschlossen ist.
                global.log.MetroLog.INSTANCE.WriteLine("Get Language data from file finalized.", global.log.MetroLog.LogType.INFO);
                foreach (string strlanguage in global.language.LanguageHandler.INSTANCE.LISTOFLANGUAGE)
                {
                    System.Windows.Forms.ToolStripMenuItem tmp_toolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(strlanguage);
                    tmp_toolStripMenuItem.Click += Click_ChangeLanguage;
                    toolStripMenuItemLanguage.DropDownItems.Add(tmp_toolStripMenuItem);
                }
                ChangeLanguage(global.config.ConfigReadWriter.LANGUAGE); // Sprache aus config file lesen.

                // Form Größe anpassen.
                if (this.Size.Width < System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width && this.Size.Height < System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height)
                {
                    this.Size = new System.Drawing.Size(global.config.ConfigReadWriter.WINDOWWIDTH, global.config.ConfigReadWriter.WINDOWLENGTH);
                    if (global.config.ConfigReadWriter.FULLSCREEN)
                    {
                        this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
                    }
                    else
                    {
                        this.WindowState = System.Windows.Forms.FormWindowState.Normal;
                    }
                    global.log.MetroLog.INSTANCE.DebugWriteLine(this.Size.Width.ToString() + " x " + this.Size.Height.ToString() + " " + this.WindowState.ToString(), global.log.MetroLog.LogType.INFO, 1011);
                }
                this.FormClosing += MetroMain_FormClosing;

                //Icon definieren
                this.Icon = new System.Drawing.Icon(global.config.ConfigReadWriter.PATHICON);

                //Panel Transparent gestalten damit Metro design angezeigt wird.
                tabNetwork.BackColor               = System.Drawing.Color.Transparent;
                tableLayoutPanel1.BackColor        = System.Drawing.Color.Transparent;
                this.statuslbl_copyright.Font      = this.tabNetwork.Font;
                this.statuslbl_copyright.ForeColor = MetroFramework.MetroColors.Black;
                this.statusprgtxt.Font             = this.tabNetwork.Font;
                this.statusprgtxt.ForeColor        = MetroFramework.MetroColors.Black;
                this.statusprgbar.BackColor        = MetroFramework.MetroColors.Silver;
                this.richTextBox_Info.Font         = MetroLabel.DefaultFont;
                this.richTextBox_Info.ForeColor    = MetroLabel.DefaultForeColor;
                this.richTextBox_Info.BackColor    = MetroFramework.MetroColors.White;
                this.richTextBox_Info.BorderStyle  = System.Windows.Forms.BorderStyle.None;
                metroStyleManager.Theme            = global.config.ConfigReadWriter.METROTHEME;
                metroStyleManager.Style            = global.config.ConfigReadWriter.METROSTYLE;


                //
                // Lizenzsystem
                //
                this.ENABLED = global.config.ConfigReadWriter.VALIDLICENSE;

                //
                // TabCOntrol
                //
                try
                {
                    this.tabControl.SelectedIndex = global.config.ConfigReadWriter.MAINFORMTABPAGE;
                }
                catch (System.Exception)
                {
                    this.tabControl.SelectedIndex = 0;
                }
            }
            catch (System.Exception)
            {
                throw; //TODO
            }
        }
Example #10
0
        public void toolTipInitilise()
        {
            metroToolTip1 = new MetroFramework.Components.MetroToolTip();

            metroToolTip1.SetToolTip(this.metroTile1, "Hydrogen\nAtomic No. - 1");
            metroToolTip1.SetToolTip(this.metroTile2, "Helium \nAtomic No. - 2");
            metroToolTip1.SetToolTip(this.metroTile3, "Lithium \nAtomic No. - 3");
            metroToolTip1.SetToolTip(this.metroTile4, "Beryllium \nAtomic No. - 4");
            metroToolTip1.SetToolTip(this.metroTile6, "Sodium \nAtomic No. - 11");
            metroToolTip1.SetToolTip(this.metroTile5, "Magnesium \nAtomic No. - 12");
            metroToolTip1.SetToolTip(this.metroTile8, "Pottasium \nAtomic No. - 19");
            metroToolTip1.SetToolTip(this.metroTile7, "Calcium \nAtomic No. - 20");
            metroToolTip1.SetToolTip(this.metroTile10, "Rubidium \nAtomic No. - 37");
            metroToolTip1.SetToolTip(this.metroTile9, "Strontium \nAtomic No. - 38");
            metroToolTip1.SetToolTip(this.metroTile12, "Cesium \nAtomic No. - 55");
            metroToolTip1.SetToolTip(this.metroTile11, "Barium \nAtomic No. - 56");
            metroToolTip1.SetToolTip(this.metroTile14, "Francium \nAtomic No. - 87");
            metroToolTip1.SetToolTip(this.metroTile13, "Radium \nAtomic No. - 88");
            metroToolTip1.SetToolTip(this.metroTile70, "Scandium \nAtomic No. - 21");
            metroToolTip1.SetToolTip(this.metroTile69, "Titanium \nAtomic No. - 22");
            metroToolTip1.SetToolTip(this.metroTile80, "Yttrium \nAtomic No. - 39");
            metroToolTip1.SetToolTip(this.metroTile79, "Zirconium \nAtomic No. - 40");
            metroToolTip1.SetToolTip(this.metroTile89, "Hafnium \nAtomic No. - 72");
            metroToolTip1.SetToolTip(this.metroTile99, "Rutherfordium \nAtomic No. - 104");
            metroToolTip1.SetToolTip(this.metroTile68, "Vanadium \nAtomic No. - 23");
            metroToolTip1.SetToolTip(this.metroTile67, "Chromium \nAtomic No. - 24");
            metroToolTip1.SetToolTip(this.metroTile78, "Niobium \nAtomic No. - 41");
            metroToolTip1.SetToolTip(this.metroTile77, "Molybdenum \nAtomic No. - 42");
            metroToolTip1.SetToolTip(this.metroTile88, "Tantalum \nAtomic No. - 73");
            metroToolTip1.SetToolTip(this.metroTile87, "Tungsten \nAtomic No. - 74");
            metroToolTip1.SetToolTip(this.metroTile98, "Dubnium \nAtomic No. - 105");
            metroToolTip1.SetToolTip(this.metroTile97, "Seaborgium \nAtomic No. - 106");
            metroToolTip1.SetToolTip(this.metroTile66, "Manganese \nAtomic No. - 25");
            metroToolTip1.SetToolTip(this.metroTile65, "Iron \nAtomic No. - 26");
            metroToolTip1.SetToolTip(this.metroTile76, "Technetuim \nAtomic No. - 43");
            metroToolTip1.SetToolTip(this.metroTile75, "Ruthenuim \nAtomic No. - 44");
            metroToolTip1.SetToolTip(this.metroTile86, "Rhenuim \nAtomic No. - 75");
            metroToolTip1.SetToolTip(this.metroTile85, "Osmium \nAtomic No. - 76");
            metroToolTip1.SetToolTip(this.metroTile96, "Bohrium \nAtomic No. - 107");
            metroToolTip1.SetToolTip(this.metroTile95, "Hassium \nAtomic No. - 108");
            metroToolTip1.SetToolTip(this.metroTile64, "Cobalt \nAtomic No. - 27");
            metroToolTip1.SetToolTip(this.metroTile63, "Nickel \nAtomic No. - 28");
            metroToolTip1.SetToolTip(this.metroTile74, "Rhodium \nAtomic No. - 45");
            metroToolTip1.SetToolTip(this.metroTile73, "Palladium \nAtomic No. - 46");
            metroToolTip1.SetToolTip(this.metroTile84, "Iridium \nAtomic No. - 77");
            metroToolTip1.SetToolTip(this.metroTile83, "Platinum \nAtomic No. - 78");
            metroToolTip1.SetToolTip(this.metroTile94, "Meitnerium \nAtomic No. - 109");
            metroToolTip1.SetToolTip(this.metroTile93, "Darmstadium \nAtomic No. - 110");
            metroToolTip1.SetToolTip(this.metroTile62, "Copper \nAtomic No. - 27");
            metroToolTip1.SetToolTip(this.metroTile61, "Zinc \nAtomic No. - 28");
            metroToolTip1.SetToolTip(this.metroTile72, "Silver \nAtomic No. - 47");
            metroToolTip1.SetToolTip(this.metroTile71, "Cadmium \nAtomic No. - 48");
            metroToolTip1.SetToolTip(this.metroTile82, "Gold \nAtomic No. - 79");
            metroToolTip1.SetToolTip(this.metroTile81, "Mercury \nAtomic No. - 80");
            metroToolTip1.SetToolTip(this.metroTile92, "Roentgenium \nAtomic No. - 111");
            metroToolTip1.SetToolTip(this.metroTile91, "Copernicium \nAtomic No. - 112");
            metroToolTip1.SetToolTip(this.metroTile16, "Boron \nAtomic No. - 5");
            metroToolTip1.SetToolTip(this.metroTile15, "Carbon \nAtomic No. - 6");
            metroToolTip1.SetToolTip(this.metroTile18, "Nitrogen \nAtomic No. - 7");
            metroToolTip1.SetToolTip(this.metroTile26, "Aluminium \nAtomic No. - 13");
            metroToolTip1.SetToolTip(this.metroTile25, "Silicon \nAtomic No. - 14");
            metroToolTip1.SetToolTip(this.metroTile24, "Phosphorous \nAtomic No. - 15");
            metroToolTip1.SetToolTip(this.metroTile32, "Gallium \nAtomic No. - 31");
            metroToolTip1.SetToolTip(this.metroTile31, "Germanium \nAtomic No. - 32");
            metroToolTip1.SetToolTip(this.metroTile30, "Arsenic \nAtomic No. - 33");
            metroToolTip1.SetToolTip(this.metroTile38, "Indium \nAtomic No. - 49");
            metroToolTip1.SetToolTip(this.metroTile37, "Tin \nAtomic No. - 50");
            metroToolTip1.SetToolTip(this.metroTile36, "Antimony \nAtomic No. - 51");
            metroToolTip1.SetToolTip(this.metroTile44, "Thallium \nAtomic No. - 81");
            metroToolTip1.SetToolTip(this.metroTile43, "Lead \nAtomic No. - 82");
            metroToolTip1.SetToolTip(this.metroTile42, "Bismuth \nAtomic No. - 83");
            metroToolTip1.SetToolTip(this.metroTile50, "Ununtrium \nAtomic No. - 113");
            metroToolTip1.SetToolTip(this.metroTile49, "Ununquadium \nAtomic No. - 114");
            metroToolTip1.SetToolTip(this.metroTile48, "Ununpentium \nAtomic No. - 115");
            metroToolTip1.SetToolTip(this.metroTile17, "Oxygen \nAtomic No. - 8");
            metroToolTip1.SetToolTip(this.metroTile20, "Florine \nAtomic No. - 9");
            metroToolTip1.SetToolTip(this.metroTile19, "Neon \nAtomic No. - 10");
            metroToolTip1.SetToolTip(this.metroTile23, "Sulphur \nAtomic No. - 16");
            metroToolTip1.SetToolTip(this.metroTile22, "Chlorine \nAtomic No. - 17");
            metroToolTip1.SetToolTip(this.metroTile21, "Argon \nAtomic No. - 18");
            metroToolTip1.SetToolTip(this.metroTile29, "Selenium \nAtomic No. - 34");
            metroToolTip1.SetToolTip(this.metroTile28, "Bromine \nAtomic No. - 35");
            metroToolTip1.SetToolTip(this.metroTile27, "Krypton \nAtomic No. - 36");
            metroToolTip1.SetToolTip(this.metroTile35, "Tellurium \nAtomic No. - 52");
            metroToolTip1.SetToolTip(this.metroTile34, "Iodine \nAtomic No. - 53");
            metroToolTip1.SetToolTip(this.metroTile33, "Xenon \nAtomic No. - 54");
            metroToolTip1.SetToolTip(this.metroTile41, "Polonium \nAtomic No. - 84");
            metroToolTip1.SetToolTip(this.metroTile40, "Astatine \nAtomic No. - 85");
            metroToolTip1.SetToolTip(this.metroTile39, "Radon \nAtomic No. - 86");
            metroToolTip1.SetToolTip(this.metroTile47, "Ununhexium \nAtomic No. - 116");
            metroToolTip1.SetToolTip(this.metroTile46, "Ununseptuim \nAtomic No. - 117");
            metroToolTip1.SetToolTip(this.metroTile45, "Ununoctium \nAtomic No. - 118");
            metroToolTip1.SetToolTip(this.metroTile107, "Lanthanum \nAtomic No. - 57");
            metroToolTip1.SetToolTip(this.metroTile106, "Cerium \nAtomic No. - 58");
            metroToolTip1.SetToolTip(this.metroTile121, "Actinium \nAtomic No. - 89");
            metroToolTip1.SetToolTip(this.metroTile120, "Thorium \nAtomic No. - 90");
            metroToolTip1.SetToolTip(this.metroTile105, "Praseodium \nAtomic No. - 59");
            metroToolTip1.SetToolTip(this.metroTile104, "Neodymium \nAtomic No. - 60");
            metroToolTip1.SetToolTip(this.metroTile119, "Protactium \nAtomic No. - 91");
            metroToolTip1.SetToolTip(this.metroTile118, "Uranium \nAtomic No. - 92");
            metroToolTip1.SetToolTip(this.metroTile103, "Promethium \nAtomic No. - 61");
            metroToolTip1.SetToolTip(this.metroTile102, "Samarium \nAtomic No. - 62");
            metroToolTip1.SetToolTip(this.metroTile117, "Neptunium \nAtomic No. - 93");
            metroToolTip1.SetToolTip(this.metroTile116, "Plutonium \nAtomic No. - 94");
            metroToolTip1.SetToolTip(this.metroTile101, "Europium \nAtomic No. - 63");
            metroToolTip1.SetToolTip(this.metroTile100, "Gadolinium \nAtomic No. - 64");
            metroToolTip1.SetToolTip(this.metroTile115, "Americium \nAtomic No. - 95");
            metroToolTip1.SetToolTip(this.metroTile114, "Curium \nAtomic No. - 96");
            metroToolTip1.SetToolTip(this.metroTile90, "Terbium \nAtomic No. - 65");
            metroToolTip1.SetToolTip(this.metroTile112, "Dysprosium \nAtomic No. - 66");
            metroToolTip1.SetToolTip(this.metroTile113, "Berkelium \nAtomic No. - 97");
            metroToolTip1.SetToolTip(this.metroTile126, "Californium \nAtomic No. - 98");
            metroToolTip1.SetToolTip(this.metroTile111, "Holmium \nAtomic No. - 67");
            metroToolTip1.SetToolTip(this.metroTile110, "Erbium \nAtomic No. - 68");
            metroToolTip1.SetToolTip(this.metroTile125, "Einstienium \nAtomic No. - 99");
            metroToolTip1.SetToolTip(this.metroTile124, "Fermium \nAtomic No. - 100");
            metroToolTip1.SetToolTip(this.metroTile109, "Thulium \nAtomic No. - 69");
            metroToolTip1.SetToolTip(this.metroTile108, "Ytterbium \nAtomic No. - 70");
            metroToolTip1.SetToolTip(this.metroTile123, "Mendelevium \nAtomic No. - 101");
            metroToolTip1.SetToolTip(this.metroTile122, "Nobelium \nAtomic No. - 102");
            metroToolTip1.SetToolTip(this.metroTile52, "Lutetium \nAtomic No. - 71");
            metroToolTip1.SetToolTip(this.metroTile51, "Lawrencium \nAtomic No. - 103");
        }
Example #11
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="metroStyleManager"></param>
        private void CustomInitializeComponent(MetroFramework.Components.MetroStyleManager metroStyleManager)
        {
            //
            // form
            //
            this.Resizable = false;

            //
            // TxtBox
            //
            this.mTxtBoxPCSerialNumber_1021.Enabled = false;

            //
            // Tooltip
            //
            metroToolTip = new MetroFramework.Components.MetroToolTip();
            metroToolTip.StyleManager = this.StyleManager;

            ChangeLanguage(config.ConfigReadWriter.LANGUAGE); // Sprache aus config file lesen.

            //
            //Icon definieren
            //
            this.Icon = new System.Drawing.Icon(config.ConfigReadWriter.PATHICON);

            //
            // StyleManager setzen
            //
            this.StyleManager = metroStyleManager;
            //tile
            this.mTileMail_1024.StyleManager      = metroStyleManager;
            this.mTileMail_1024.Click            += MTileMail_1024_Click;
            this.mTileRegister_1025.StyleManager  = metroStyleManager;
            this.mTileRegister_1025.Click        += MTileRegister_1025_Click;
            this.mTileGenerator_1026.StyleManager = metroStyleManager;
            this.mTileGenerator_1026.Click       += MTileGenerator_1026_Click;
            //txtbox
            this.mTxtBoxPCGenerateKey_1023.StyleManager  = metroStyleManager;
            this.mTxtBoxPCKey_1022.StyleManager          = metroStyleManager;
            this.mTxtBoxPCSerialNumber_1021.StyleManager = metroStyleManager;

            //
            // Lizenzsystem
            //
            if (config.ConfigReadWriter.VALIDLICENSE)
            {
                this.mTxtBoxPCSerialNumber_1021.Text = config.ConfigReadWriter.LICENSESOFTWAREIDCLEAR;
                if (!global.readme.license.LicenseHandler.ISADMIN)
                {
                    this.mTxtBoxPCGenerateKey_1023.Visible = false;
                    this.mTileGenerator_1026.Visible       = false;
                    this.mTileGenerator_1026.Enabled       = false;
                }
            }
            else
            {
                this.mTxtBoxPCSerialNumber_1021.Text   = global.readme.license.LicenseHandler.SOFTWAREID;
                this.mTxtBoxPCGenerateKey_1023.Visible = false;
                this.mTileGenerator_1026.Visible       = false;
                this.mTileGenerator_1026.Enabled       = false;
            }
        }
Example #12
0
 /// <summary>
 /// Methode wurde in global verschoben um es zu vereinheitlichen.
 /// </summary>
 /// <param name="controls"></param>
 /// <param name="metroToolTip"></param>
 /// <param name="language"></param>
 /// <created>janzen_d,2018-09-13</created>
 public static void ChangeLanguage(System.Windows.Forms.Control.ControlCollection controls, MetroFramework.Components.MetroToolTip metroToolTip, string language)
 {
     try
     {
         // alle tags lesen und mit den richtigen Sprachen beschreiben.
         foreach (System.Windows.Forms.Control control in controls)
         {
             System.Collections.Generic.List <System.Windows.Forms.Control> list = new System.Collections.Generic.List <System.Windows.Forms.Control>();
             GetAllControls(control, list);
             foreach (System.Windows.Forms.Control itemcontrol in list)
             {
                 if (itemcontrol.Tag != null && System.Int32.TryParse(itemcontrol.Tag.ToString(), out int resulttextid))
                 {
                     string[] arytmp = global.language.LanguageHandler.INSTANCE.GETOBJWORD(language, resulttextid);
                     if (arytmp[2] != null || arytmp[2] != "")
                     {
                         if (itemcontrol is panel.TW_AD)
                         {
                             ((panel.TW_AD)itemcontrol).ChangeLanguage(language);
                         }
                         if (arytmp[2].Length > 2)
                         {
                             itemcontrol.Text = arytmp[2];
                         }
                         global.log.MetroLog.INSTANCE.DebugWriteLine("Set control text: " + itemcontrol.Name.ToString() + " = " + arytmp[2], global.log.MetroLog.LogType.INFO);
                         if (arytmp[0] != null || arytmp[0] != "")
                         {
                             metroToolTip.SetToolTip(itemcontrol, arytmp[0]);
                             global.log.MetroLog.INSTANCE.DebugWriteLine("Set control tool tip text: " + itemcontrol.Name.ToString() + " = " + arytmp[0], global.log.MetroLog.LogType.INFO);
                         }
                     }
                 }
                 else if (itemcontrol is MetroFramework.Controls.MetroGrid)
                 {
                     foreach (System.Windows.Forms.DataGridViewColumn itemcolumn in ((MetroFramework.Controls.MetroGrid)itemcontrol).Columns)
                     {
                         if (itemcolumn.Tag != null && System.Int32.TryParse(itemcolumn.Tag.ToString(), out int resultcolumntextid))
                         {
                             string[] arytmp = global.language.LanguageHandler.INSTANCE.GETOBJWORD(language, resultcolumntextid);
                             if (arytmp[2] != null || arytmp[2] != "")
                             {
                                 if (arytmp[2].Length > 2)
                                 {
                                     itemcolumn.HeaderText = arytmp[2];
                                 }
                                 global.log.MetroLog.INSTANCE.DebugWriteLine("Set control text: " + itemcolumn.Name.ToString() + " = " + arytmp[2], global.log.MetroLog.LogType.INFO);
                                 if (arytmp[0] != null || arytmp[0] != "")
                                 {
                                     itemcolumn.ToolTipText = arytmp[0];
                                     global.log.MetroLog.INSTANCE.DebugWriteLine("Set control tool tip text: " + itemcolumn.Name.ToString() + " = " + arytmp[0], global.log.MetroLog.LogType.INFO);
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     catch (System.Exception)
     {
         throw;
     }
 }