Example #1
1
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.metroTabControl1 = new MetroFramework.Controls.MetroTabControl();
     this.Favs = new MetroFramework.Controls.MetroTabPage();
     this.ServerPage = new MetroFramework.Controls.MetroTabPage();
     this.SAMPPlus = new MetroFramework.Controls.MetroTabPage();
     this.Hosted = new MetroFramework.Controls.MetroTabPage();
     this.metroStyleManager = new MetroFramework.Components.MetroStyleManager(this.components);
     this.metroProgressSpinner1 = new MetroFramework.Controls.MetroProgressSpinner();
     this.metroScrollBar1 = new MetroFramework.Controls.MetroScrollBar();
     this.metroTabControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager)).BeginInit();
     this.SuspendLayout();
     //
     // metroTabControl1
     //
     this.metroTabControl1.Controls.Add(this.Favs);
     this.metroTabControl1.Controls.Add(this.ServerPage);
     this.metroTabControl1.Controls.Add(this.SAMPPlus);
     this.metroTabControl1.Controls.Add(this.Hosted);
     this.metroTabControl1.Location = new System.Drawing.Point(4, 32);
     this.metroTabControl1.Name = "metroTabControl1";
     this.metroTabControl1.SelectedIndex = 0;
     this.metroTabControl1.Size = new System.Drawing.Size(740, 36);
     this.metroTabControl1.Style = MetroFramework.MetroColorStyle.Lime;
     this.metroTabControl1.TabIndex = 0;
     this.metroTabControl1.UseSelectable = true;
     //
     // Favs
     //
     this.Favs.AutoScroll = true;
     this.Favs.HorizontalScrollbar = true;
     this.Favs.HorizontalScrollbarBarColor = true;
     this.Favs.HorizontalScrollbarHighlightOnWheel = false;
     this.Favs.HorizontalScrollbarSize = 10;
     this.Favs.Location = new System.Drawing.Point(4, 38);
     this.Favs.Name = "Favs";
     this.Favs.Padding = new System.Windows.Forms.Padding(25);
     this.Favs.Size = new System.Drawing.Size(732, 0);
     this.Favs.TabIndex = 0;
     this.Favs.Text = "Favourites";
     this.Favs.VerticalScrollbar = true;
     this.Favs.VerticalScrollbarBarColor = true;
     this.Favs.VerticalScrollbarHighlightOnWheel = false;
     this.Favs.VerticalScrollbarSize = 10;
     //
     // ServerPage
     //
     this.ServerPage.AutoScroll = true;
     this.ServerPage.HorizontalScrollbar = true;
     this.ServerPage.HorizontalScrollbarBarColor = true;
     this.ServerPage.HorizontalScrollbarHighlightOnWheel = false;
     this.ServerPage.HorizontalScrollbarSize = 10;
     this.ServerPage.Location = new System.Drawing.Point(4, 35);
     this.ServerPage.Name = "ServerPage";
     this.ServerPage.Padding = new System.Windows.Forms.Padding(25);
     this.ServerPage.Size = new System.Drawing.Size(732, -3);
     this.ServerPage.TabIndex = 0;
     this.ServerPage.Text = "Servers";
     this.ServerPage.VerticalScrollbar = true;
     this.ServerPage.VerticalScrollbarBarColor = true;
     this.ServerPage.VerticalScrollbarHighlightOnWheel = false;
     this.ServerPage.VerticalScrollbarSize = 10;
     //
     // SAMPPlus
     //
     this.SAMPPlus.AutoScroll = true;
     this.SAMPPlus.HorizontalScrollbar = true;
     this.SAMPPlus.HorizontalScrollbarBarColor = true;
     this.SAMPPlus.HorizontalScrollbarHighlightOnWheel = false;
     this.SAMPPlus.HorizontalScrollbarSize = 10;
     this.SAMPPlus.Location = new System.Drawing.Point(4, 35);
     this.SAMPPlus.Name = "SAMPPlus";
     this.SAMPPlus.Padding = new System.Windows.Forms.Padding(25);
     this.SAMPPlus.Size = new System.Drawing.Size(732, -3);
     this.SAMPPlus.TabIndex = 0;
     this.SAMPPlus.Text = "SAMP+ Servers";
     this.SAMPPlus.VerticalScrollbar = true;
     this.SAMPPlus.VerticalScrollbarBarColor = true;
     this.SAMPPlus.VerticalScrollbarHighlightOnWheel = false;
     this.SAMPPlus.VerticalScrollbarSize = 10;
     //
     // Hosted
     //
     this.Hosted.AutoScroll = true;
     this.Hosted.HorizontalScrollbar = true;
     this.Hosted.HorizontalScrollbarBarColor = true;
     this.Hosted.HorizontalScrollbarHighlightOnWheel = false;
     this.Hosted.HorizontalScrollbarSize = 10;
     this.Hosted.Location = new System.Drawing.Point(4, 35);
     this.Hosted.Name = "Hosted";
     this.Hosted.Padding = new System.Windows.Forms.Padding(25);
     this.Hosted.Size = new System.Drawing.Size(732, -3);
     this.Hosted.TabIndex = 0;
     this.Hosted.Text = "Hosted";
     this.Hosted.VerticalScrollbar = true;
     this.Hosted.VerticalScrollbarBarColor = true;
     this.Hosted.VerticalScrollbarHighlightOnWheel = false;
     this.Hosted.VerticalScrollbarSize = 10;
     //
     // metroStyleManager
     //
     this.metroStyleManager.Owner = null;
     //
     // metroProgressSpinner1
     //
     this.metroProgressSpinner1.Backwards = true;
     this.metroProgressSpinner1.Location = new System.Drawing.Point(4, 459);
     this.metroProgressSpinner1.Maximum = 100;
     this.metroProgressSpinner1.Minimum = 20;
     this.metroProgressSpinner1.Name = "metroProgressSpinner1";
     this.metroProgressSpinner1.Size = new System.Drawing.Size(16, 16);
     this.metroProgressSpinner1.Style = MetroFramework.MetroColorStyle.Lime;
     this.metroProgressSpinner1.TabIndex = 1;
     this.metroProgressSpinner1.UseSelectable = true;
     this.metroProgressSpinner1.UseStyleColors = true;
     this.metroProgressSpinner1.Value = 20;
     //
     // metroScrollBar1
     //
     this.metroScrollBar1.LargeChange = 10;
     this.metroScrollBar1.Location = new System.Drawing.Point(730, 76);
     this.metroScrollBar1.Maximum = 100;
     this.metroScrollBar1.Minimum = 0;
     this.metroScrollBar1.MouseWheelBarPartitions = 10;
     this.metroScrollBar1.Name = "metroScrollBar1";
     this.metroScrollBar1.Orientation = MetroFramework.Controls.MetroScrollOrientation.Vertical;
     this.metroScrollBar1.ScrollbarSize = 10;
     this.metroScrollBar1.Size = new System.Drawing.Size(10, 200);
     this.metroScrollBar1.TabIndex = 2;
     this.metroScrollBar1.UseSelectable = true;
     //
     // MainForm
     //
     this.ClientSize = new System.Drawing.Size(767, 483);
     this.Controls.Add(this.metroScrollBar1);
     this.Controls.Add(this.metroProgressSpinner1);
     this.Controls.Add(this.metroTabControl1);
     this.Name = "MainForm";
     this.Style = MetroFramework.MetroColorStyle.Lime;
     this.metroTabControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager)).EndInit();
     this.ResumeLayout(false);
 }
 public FormTableOrdes()
 {
     InitializeComponent();
     //STYLE MANAGER
     MetroStryleManagerForm = new MetroFramework.Components.MetroStyleManager();
     StyleManager           = metroStyleManager;
 }
Example #3
0
        public TW_STOPC(MetroFramework.Components.MetroStyleManager metroStyleManager)
        {
            InitializeComponent();
            this.CustomInitializeComponent(metroStyleManager); // deklariert im *.Designer.cs

            listOpcTags = new List <OPCTag>();
            listThreads = new List <Thread>();
        }
Example #4
0
 public User(string username, string password, string recoveryKey, Image profilePic, Inventory inventory)
 {
     _Username    = username;
     _Password    = password;
     _RecoveryKey = recoveryKey;
     Inventory    = inventory;
     ProfilePic   = profilePic;
     StyleManager = new MetroFramework.Components.MetroStyleManager();
 }
Example #5
0
 int count;                //Целочисленное значение количества вопросов
 public FillQuestion(int k, XmlTextWriter Writer, MetroFramework.Components.MetroStyleManager msmEditor)
 {
     InitializeComponent();
     msmFillQW            = msmEditor;
     this.StyleManager    = msmFillQW;
     testWriter           = Writer;
     count                = k;
     lblEditQuestion.Text = "Редактирование вопроса №" + count;
 }
        public FormConfiguration()
        {
            InitializeComponent();
            //THEME AND STYLE
            MetroStryleManagerForm = new MetroFramework.Components.MetroStyleManager();
            StyleManager           = metroStyleManager;

            //VALUE OF SCREEN RESOLUTIONS
            ScreenResolutions();
        }
Example #7
0
    public void SetStyle(IContainer container, Form1 ownerForm)
    {
        if (container == null)
        {
            container = new System.ComponentModel.Container();
        }
        var manager = new MetroFramework.Components.MetroStyleManager(container);

        manager.Owner = ownerForm;
        container.SetDefaultStyle(ownerForm, FormStyle);
    }
Example #8
0
 public MainMenu(string username, string personName, string personSurname, string group, MetroFramework.Components.MetroStyleManager msmMain)
 {
     InitializeComponent();
     Username          = username;
     PersonName        = personName;
     PersonSurname     = personSurname;
     Group             = group;
     msmMenu           = msmMain;
     this.StyleManager = msmMenu;
     lblUser.Text      = username;
 }
Example #9
0
        XmlTextWriter testWriter; //XmlTextWriter для записи xml-файла с тестом
        public TestEditor(MetroFramework.Components.MetroStyleManager msmMenu)
        {
            InitializeComponent();
            msmEditor         = msmMenu;
            this.StyleManager = msmEditor;
            DirectoryInfo TestsDir = new DirectoryInfo("Tests"); //Создаем DirectoryInfo соответствующее папке Tests c тестами

            if (!TestsDir.Exists)                                //Если папки Tests нет
            {
                TestsDir.Create();                               //Создаем её
            }
            comboBox1.Items.AddRange(TestsDir.GetDirectories()); //Заполняем comboBox1 поддерикториями папки Tests
        }
Example #10
0
        /// <summary>
        /// Standardkonstruktor
        /// </summary>
        /// <param name="metroStyleManager"></param>
        public TW_AD(MetroFramework.Components.MetroStyleManager metroStyleManager)
        {
            InitializeComponent();
            this.CustomInitializeComponent(metroStyleManager); // deklariert im *.Designer.cs

            // objects
            listXmlEquipment = new List <XmlDocument>();

            // Ordner aus der History laden
            mtxtBox_TWPath_1038.Text = global.config.ConfigReadWriter.TWADPREPATH;

            // Save button deaktivieren
            mbtnSave_1040.Enabled = false;

            metroGrid.EditMode = DataGridViewEditMode.EditProgrammatically;
        }
Example #11
0
 private void InitializeComponent()
 {
     components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form2));
     metroProgressSpinner1 = new MetroFramework.Controls.MetroProgressSpinner();
     metroButton1          = new MetroFramework.Controls.MetroButton();
     Themer = new MetroFramework.Components.MetroStyleManager(components);
     SuspendLayout();
     metroProgressSpinner1.Cursor   = System.Windows.Forms.Cursors.AppStarting;
     metroProgressSpinner1.Location = new System.Drawing.Point(23, 57);
     metroProgressSpinner1.Maximum  = 100;
     metroProgressSpinner1.Name     = "metroProgressSpinner1";
     metroProgressSpinner1.Size     = new System.Drawing.Size(200, 200);
     metroProgressSpinner1.TabIndex = 0;
     metroProgressSpinner1.Theme    = MetroFramework.MetroThemeStyle.Dark;
     metroProgressSpinner1.Value    = 1;
     metroButton1.Cursor            = System.Windows.Forms.Cursors.Default;
     metroButton1.Location          = new System.Drawing.Point(85, 147);
     metroButton1.Name        = "metroButton1";
     metroButton1.Size        = new System.Drawing.Size(75, 23);
     metroButton1.TabIndex    = 1;
     metroButton1.TabStop     = false;
     metroButton1.Text        = "Cancel";
     metroButton1.Theme       = MetroFramework.MetroThemeStyle.Dark;
     metroButton1.Click      += new System.EventHandler(metroButton1_Click);
     Themer.Owner             = this;
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
     base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize          = new System.Drawing.Size(250, 280);
     base.ControlBox          = false;
     base.Controls.Add(metroButton1);
     base.Controls.Add(metroProgressSpinner1);
     Cursor           = System.Windows.Forms.Cursors.AppStarting;
     base.Icon        = (System.Drawing.Icon)resources.GetObject("$this.Icon");
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name        = "Form2";
     base.Resizable   = false;
     base.ShadowType  = MetroFramework.Forms.MetroFormShadowType.AeroShadow;
     Text             = "Loading BnS Buddy";
     base.TextAlign   = MetroFramework.Forms.MetroFormTextAlign.Center;
     base.Theme       = MetroFramework.MetroThemeStyle.Dark;
     base.TopMost     = true;
     ((System.ComponentModel.ISupportInitialize)Themer).EndInit();
     ResumeLayout(false);
 }
        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;
        }
Example #13
0
 public static void LoadTheme(MetroFramework.Components.MetroStyleManager MetroStyleManager)
 {
     Friends.globalThemeManager.Add(MetroStyleManager);
     MetroStyleManager.Theme = Friends.globalStyleManager.Theme;
     MetroStyleManager.Style = Friends.globalStyleManager.Style;
 }
Example #14
0
 public Register(MetroFramework.Components.MetroStyleManager metroStyleManager)
 {
     InitializeComponent();
     this.CustomInitializeComponent(metroStyleManager); // deklariert im *.Designer.cs
 }
        /// <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 #16
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;
        }
Example #17
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();
     this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
     this.txtVertice = new MetroFramework.Controls.MetroTextBox();
     this.btnCancelar = new MetroFramework.Controls.MetroButton();
     this.btnAceptar = new MetroFramework.Controls.MetroButton();
     this.VerticeStyleManager = new MetroFramework.Components.MetroStyleManager(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.VerticeStyleManager)).BeginInit();
     this.SuspendLayout();
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.FontSize = MetroFramework.MetroLabelSize.Tall;
     this.metroLabel1.Location = new System.Drawing.Point(23, 67);
     this.metroLabel1.Name = "metroLabel1";
     this.metroLabel1.Size = new System.Drawing.Size(162, 25);
     this.metroLabel1.TabIndex = 12;
     this.metroLabel1.Text = "Valor nuevo vertice:";
     this.metroLabel1.UseStyleColors = true;
     //
     // txtVertice
     //
     //
     //
     //
     this.txtVertice.CustomButton.Image = null;
     this.txtVertice.CustomButton.Location = new System.Drawing.Point(71, 2);
     this.txtVertice.CustomButton.Name = "";
     this.txtVertice.CustomButton.Size = new System.Drawing.Size(23, 23);
     this.txtVertice.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
     this.txtVertice.CustomButton.TabIndex = 1;
     this.txtVertice.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
     this.txtVertice.CustomButton.UseSelectable = true;
     this.txtVertice.CustomButton.Visible = false;
     this.txtVertice.FontSize = MetroFramework.MetroTextBoxSize.Tall;
     this.txtVertice.Lines = new string[0];
     this.txtVertice.Location = new System.Drawing.Point(189, 65);
     this.txtVertice.MaxLength = 32767;
     this.txtVertice.Name = "txtVertice";
     this.txtVertice.PasswordChar = '\0';
     this.txtVertice.PromptText = "#";
     this.txtVertice.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtVertice.SelectedText = "";
     this.txtVertice.SelectionLength = 0;
     this.txtVertice.SelectionStart = 0;
     this.txtVertice.ShortcutsEnabled = true;
     this.txtVertice.Size = new System.Drawing.Size(97, 28);
     this.txtVertice.TabIndex = 11;
     this.txtVertice.UseSelectable = true;
     this.txtVertice.UseStyleColors = true;
     this.txtVertice.WaterMark = "#";
     this.txtVertice.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.txtVertice.WaterMarkFont = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtVertice.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtVertice_KeyDown);
     //
     // btnCancelar
     //
     this.btnCancelar.FontSize = MetroFramework.MetroButtonSize.Tall;
     this.btnCancelar.Highlight = true;
     this.btnCancelar.Location = new System.Drawing.Point(186, 114);
     this.btnCancelar.Name = "btnCancelar";
     this.btnCancelar.Size = new System.Drawing.Size(100, 23);
     this.btnCancelar.TabIndex = 10;
     this.btnCancelar.Text = "Cancelar";
     this.btnCancelar.UseSelectable = true;
     this.btnCancelar.UseStyleColors = true;
     this.btnCancelar.Click += new System.EventHandler(this.btnCancelar_Click);
     //
     // btnAceptar
     //
     this.btnAceptar.FontSize = MetroFramework.MetroButtonSize.Tall;
     this.btnAceptar.Highlight = true;
     this.btnAceptar.Location = new System.Drawing.Point(23, 114);
     this.btnAceptar.Name = "btnAceptar";
     this.btnAceptar.Size = new System.Drawing.Size(100, 23);
     this.btnAceptar.TabIndex = 9;
     this.btnAceptar.Text = "Aceptar";
     this.btnAceptar.UseSelectable = true;
     this.btnAceptar.UseStyleColors = true;
     this.btnAceptar.Click += new System.EventHandler(this.btnAceptar_Click);
     //
     // VerticeStyleManager
     //
     this.VerticeStyleManager.Owner = this;
     this.VerticeStyleManager.Theme = MetroFramework.MetroThemeStyle.Dark;
     //
     // Vertice
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(309, 158);
     this.Controls.Add(this.metroLabel1);
     this.Controls.Add(this.txtVertice);
     this.Controls.Add(this.btnCancelar);
     this.Controls.Add(this.btnAceptar);
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "Vertice";
     this.Resizable = false;
     this.Text = "Agregar nuevo vertice";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Vertice_FormClosing);
     this.Load += new System.EventHandler(this.Vertice_Load);
     this.Shown += new System.EventHandler(this.Vertice_Shown);
     ((System.ComponentModel.ISupportInitialize)(this.VerticeStyleManager)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <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(agrergarcasa));
     this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
     this.metroLink1 = new MetroFramework.Controls.MetroLink();
     this.metroComboBox1 = new MetroFramework.Controls.MetroComboBox();
     this.metroButton1 = new MetroFramework.Controls.MetroButton();
     this.metroStyleManager1 = new MetroFramework.Components.MetroStyleManager(this.components);
     this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton();
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).BeginInit();
     this.SuspendLayout();
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.Location = new System.Drawing.Point(37, 69);
     this.metroLabel1.Name = "metroLabel1";
     this.metroLabel1.Size = new System.Drawing.Size(115, 19);
     this.metroLabel1.TabIndex = 0;
     this.metroLabel1.Text = "Seleccione Lugar: ";
     //
     // metroLink1
     //
     this.metroLink1.Location = new System.Drawing.Point(113, 113);
     this.metroLink1.Name = "metroLink1";
     this.metroLink1.Size = new System.Drawing.Size(224, 23);
     this.metroLink1.TabIndex = 2;
     this.metroLink1.Text = "¿La casa no esta? Registrala AQUI!!";
     this.metroLink1.UseSelectable = true;
     this.metroLink1.Click += new System.EventHandler(this.metroLink1_Click);
     //
     // metroComboBox1
     //
     this.metroComboBox1.FormattingEnabled = true;
     this.metroComboBox1.ItemHeight = 23;
     this.metroComboBox1.Location = new System.Drawing.Point(158, 69);
     this.metroComboBox1.Name = "metroComboBox1";
     this.metroComboBox1.Size = new System.Drawing.Size(121, 29);
     this.metroComboBox1.TabIndex = 3;
     this.metroComboBox1.UseSelectable = true;
     //
     // metroButton1
     //
     this.metroButton1.Location = new System.Drawing.Point(177, 153);
     this.metroButton1.Name = "metroButton1";
     this.metroButton1.Size = new System.Drawing.Size(75, 23);
     this.metroButton1.TabIndex = 4;
     this.metroButton1.Text = "Agregar";
     this.metroButton1.UseSelectable = true;
     this.metroButton1.Click += new System.EventHandler(this.metroButton1_Click);
     //
     // metroStyleManager1
     //
     this.metroStyleManager1.Owner = this;
     this.metroStyleManager1.Style = MetroFramework.MetroColorStyle.Orange;
     this.metroStyleManager1.Theme = MetroFramework.MetroThemeStyle.Dark;
     //
     // bunifuImageButton1
     //
     this.bunifuImageButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     this.bunifuImageButton1.Cursor = System.Windows.Forms.Cursors.Hand;
     this.bunifuImageButton1.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton1.Image")));
     this.bunifuImageButton1.ImageActive = null;
     this.bunifuImageButton1.Location = new System.Drawing.Point(361, 28);
     this.bunifuImageButton1.Name = "bunifuImageButton1";
     this.bunifuImageButton1.Size = new System.Drawing.Size(46, 33);
     this.bunifuImageButton1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.bunifuImageButton1.TabIndex = 41;
     this.bunifuImageButton1.TabStop = false;
     this.bunifuImageButton1.Zoom = 10;
     this.bunifuImageButton1.Click += new System.EventHandler(this.bunifuImageButton1_Click);
     //
     // agrergarcasa
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(414, 199);
     this.Controls.Add(this.bunifuImageButton1);
     this.Controls.Add(this.metroButton1);
     this.Controls.Add(this.metroComboBox1);
     this.Controls.Add(this.metroLink1);
     this.Controls.Add(this.metroLabel1);
     this.Name = "agrergarcasa";
     this.Text = "agrergar casa";
     this.Theme = MetroFramework.MetroThemeStyle.Dark;
     this.Load += new System.EventHandler(this.agrergarcasa_Load);
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #19
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;
            }
        }