Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
        private void PointTasks()
        {
            foreach (var taskgroup in TaskManager.GetTaskGroups())
            {
                MetroFramework.Controls.MetroTabPage tabPage = new MetroFramework.Controls.MetroTabPage();
                tabPage.Name = taskgroup.GroupId;
                tabPage.Tag  = taskgroup;
                tabPage.Text = taskgroup.GroupName;
                tabPage.VerticalScrollbarSize               = 4;
                tabPage.HorizontalScrollbar                 = false;
                tabPage.HorizontalScroll.Enabled            = false;
                tabPage.HorizontalScrollbarHighlightOnWheel = false;
                tabPage.VerticalScrollbar = true;
                tabPage.AutoScroll        = true;
                tabPage.PagePanelDock <TaskForm>(list =>
                {
                    List <DailyTask> dtl = new List <DailyTask>();
                    foreach (var ctl in list)
                    {
                        dtl.Add(ctl.DailyTask);
                    }
                    TaskManager.GetTaskGroup(tabPage.Name).DailyTasks = dtl;
                    FileHelper.SaveJosn(TaskManager.ConvertJson());
                });

                metroTabControl.TabPages.Add(tabPage);

                foreach (var task in taskgroup.DailyTasks)
                {
                    tabPage.Controls.Add(AddTaskForm(task));
                }
            }
            this.metroStyleManager.Update();
        }
Ejemplo n.º 3
0
        public Bloc_Department(int position_x, int position_y, MetroFramework.Controls.MetroTabPage fenetre, List <Department> list_dep)
        {
            this.fenetre      = fenetre;
            panel_departement = new MetroFramework.Controls.MetroPanel();
            label_titre       = new MetroFramework.Controls.MetroLabel();
            button_inverser   = new MetroFramework.Controls.MetroButton();

            panel_departement.BorderStyle       = BorderStyle.FixedSingle;
            panel_departement.VerticalScrollbar = true;
            panel_departement.Location          = new Point(position_x, position_y);
            panel_departement.Size       = new Size(150, 230);
            panel_departement.AutoScroll = true;
            fenetre.Controls.Add(panel_departement);

            label_titre.Text     = "Quartier";
            label_titre.Location = new Point(10, 10);
            label_titre.Size     = new Size(60, 20);
            panel_departement.Controls.Add(label_titre);

            button_inverser.Text     = "Inverser";
            button_inverser.Location = new Point(75, 10);
            button_inverser.Size     = new Size(60, 20);
            panel_departement.Controls.Add(button_inverser);

            button_inverser.Click += Bouton_inverser_Click;


            for (int i = 0; i < list_dep.Count; i++)
            {
                Department_Element ajout = new Department_Element(list_dep[i], 10, 40 + 20 * i, panel_departement);
                list_department.Add(ajout);
            }
        }
Ejemplo n.º 4
0
        public override void UpdateControles()
        {
            base.UpdateControles();

            this.back_button.Tag = 1;   //para nao deixar a UserControl1 executar o 'back'

            try
            {
                this.metroTabControl.TabPages.Clear();
                for (int i = 0; i < vConsCad.infCad.Count; ++i)
                {
                    MetroFramework.Controls.MetroTabPage tb = new MetroFramework.Controls.MetroTabPage();
                    tb.Padding = new System.Windows.Forms.Padding(2);
                    tb.Text    = "Consulta-" + (i + 1).ToString();
                    //tb.Theme = uninfeDummy.mainForm.uTheme;
                    //tb.Style = uninfeDummy.mainForm.uStyle;

                    userCadastroResultDados dd = new userCadastroResultDados();
                    tb.Controls.Add(dd);
                    //dd.Location = new Point(1, 1);
                    //dd.Dock = DockStyle.Fill;
                    dd.Populate(vConsCad.infCad[i]);

                    this.metroTabControl.TabPages.Add(tb);
                }
            }
            catch (Exception ex)
            {
                MetroFramework.MetroMessageBox.Show(uninfeDummy.mainForm, ex.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 5
0
 public MetroFramework.Controls.MetroGrid CreateNewPageGird(TabControl ReceiveOrSend)
 {
     if (ReceiveOrSend.InvokeRequired)
     {
         GreatePageCallBackGird d = new GreatePageCallBackGird(CreateNewPageGird);
         return((MetroFramework.Controls.MetroGrid) this.Invoke(d, new object[] { ReceiveOrSend }));
     }
     else
     {
         if (ReceiveOrSend.TabCount == 12)
         {
             ClearMessagePage();
         }
         MetroFramework.Controls.MetroTabPage Tp = new MetroFramework.Controls.MetroTabPage();
         MetroFramework.Controls.MetroGrid    Tv = new MetroFramework.Controls.MetroGrid();
         ReceiveOrSend.Controls.Add(Tp);
         Tp.Controls.Add(Tv);
         Tv.Dock = DockStyle.Fill;
         Tv.AutoSizeColumnsMode           = DataGridViewAutoSizeColumnsMode.AllCells;
         Tv.AutoSizeRowsMode              = DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders;
         Tv.RowsDefaultCellStyle.WrapMode = (DataGridViewTriState.True);
         Tv.CellBorderStyle =
             DataGridViewCellBorderStyle.Sunken;
         Tv.RowHeadersBorderStyle =
             DataGridViewHeaderBorderStyle.Single;
         Tv.ColumnHeadersBorderStyle =
             DataGridViewHeaderBorderStyle.Single;
         Tv.AllowUserToAddRows     = false;
         Tp.Padding                = new Padding(5, 5, 0, 0);
         Tv.ContextMenuStrip       = MessageClickMenu;
         ReceiveOrSend.SelectedTab = Tp;
         return((MetroFramework.Controls.MetroGrid)ReceiveOrSend.Controls[ReceiveOrSend.Controls.Count - 1].Controls[ReceiveOrSend.Controls[ReceiveOrSend.Controls.Count - 1].Controls.Count - 1]);
     }
 }
Ejemplo n.º 6
0
        public Bloc_Fenetre(Locations location, Size taille_fenetre)
        {
            this.location    = location;
            fenetre          = new MetroFramework.Controls.MetroTabPage();
            fenetre.Location = new System.Drawing.Point(4, 22);
            fenetre.Name     = "fenetre";
            fenetre.Padding  = new System.Windows.Forms.Padding(3);
            fenetre.Size     = taille_fenetre;
            fenetre.Text     = location.Name;
            fenetre.UseVisualStyleBackColor = true;

            position_y = fenetre.Height - 40;

            label_recheche          = new MetroFramework.Controls.MetroLabel();
            label_recheche.AutoSize = true;
            label_recheche.Location = new Point((int)(fenetre.Width * 0.5), (int)(position_y - label_recheche.Size.Height * 1.5));
            label_recheche.Name     = "label_recherche";
            label_recheche.Text     = "Sortie du planning";

            temps_sortie_planning = new DateTimePicker();
            temps_sortie_planning.CustomFormat = "HH:mm";
            temps_sortie_planning.Format       = DateTimePickerFormat.Custom;
            temps_sortie_planning.Location     = new Point((int)(fenetre.Width * 0.7), (int)(position_y - label_recheche.Size.Height * 1.5));
            temps_sortie_planning.Name         = "debut_periode_date";
            temps_sortie_planning.ShowUpDown   = true;
            temps_sortie_planning.Size         = new Size(70, 25);
            temps_sortie_planning.Value        = new DateTime(1900, 1, 1, 0, 0, 0);



            fenetre.Controls.Add(label_recheche);
            fenetre.Controls.Add(temps_sortie_planning);
        }
Ejemplo n.º 7
0
        private MetroFramework.Controls.MetroTabPage createtpage(int id)
        {
            #region --createtpage

            var tpage = new MetroFramework.Controls.MetroTabPage();
            tpage.Padding = new Padding(2);
            //tpage.Theme = uninfeDummy.mainForm.uTheme;
            //tpage.Style = uninfeDummy.mainForm.uStyle;

            switch (id)
            {
            case 0:
                tpage.Text = "Principal";
                //tpage.AutoScroll = (Propriedade.TipoAplicativo == TipoAplicativo.Nfe || Propriedade.TipoExecucao == TipoExecucao.teAll);
                uce_divs = new Formularios.userConfiguracao_diversos();
                uce_divs.uConfiguracoes = this;
                uce_divs.changeEvent   += changed_Modificado;
                tpage.Controls.Add(uce_divs);
                break;

            case 1:
                tpage.Text = "Pastas";
                //tpage.AutoScroll = (Propriedade.TipoAplicativo == TipoAplicativo.Nfe || Propriedade.TipoExecucao == TipoExecucao.teAll);
                uce_pastas              = new Formularios.UserConfiguracaoPastas();
                uce_pastas.ChangeEvent += changed_Modificado;
                tpage.Controls.Add(uce_pastas);
                break;

            case 2:
                tpage.Text            = "Certificado digital";
                uce_cert              = new Formularios.userConfiguracao_certificado();
                uce_cert.changeEvent += changed_Modificado;
                uce_cert.ucPastas     = uce_pastas;
                tpage.Controls.Add(uce_cert);
                break;

            case 3:
                tpage.Text           = "FTP";
                uce_ftp              = new Formularios.userConfiguracao_ftp();
                uce_ftp.changeEvent += changed_Modificado;
                tpage.Controls.Add(uce_ftp);
                break;

            case 4:
                tpage.Text             = "DANFE";
                tpage.AutoScroll       = true;
                uce_danfe              = new Formularios.userConfiguracao_danfe();
                uce_danfe.changeEvent += changed_Modificado;
                tpage.Controls.Add(uce_danfe);
                break;
            }
            tpage.Controls[tpage.Controls.Count - 1].Dock = DockStyle.Fill;

            return(tpage);

            #endregion
        }
Ejemplo n.º 8
0
        private void LoadTasks()
        {
            TaskManager.ClearGroups();
            LoadControl lc = new LoadControl(
                () =>
                {
                    TaskManager.ClearGroups();
                    var rj = FileHelper.ReadJosn<List<CustomTasks>>();
                    if (rj != null)
                    {
                        TaskManager.LoadGroup(rj.ToList<ITaskGroup>());
                    }
                },
                () =>
                {
                    foreach (var taskgroup in TaskManager.GetTaskGroups())
                    {
                        MetroFramework.Controls.MetroTabPage tabPage = new MetroFramework.Controls.MetroTabPage();
                        tabPage.Name = taskgroup.GroupId;
                        tabPage.Tag = taskgroup;
                        tabPage.Text = taskgroup.GroupName;
                        tabPage.VerticalScrollbarSize = 4;
                        tabPage.HorizontalScrollbar = false;
                        tabPage.HorizontalScroll.Enabled = false;
                        tabPage.HorizontalScrollbarHighlightOnWheel = false;
                        tabPage.VerticalScrollbar = true;
                        tabPage.AutoScroll = true;
                        tabPage.Theme = this.metroStyleManager1.Theme;

                        tabPage.PagePanelDock<TaskForm>(list =>
                        {
                            List<DailyTask> dtl = new List<DailyTask>();
                            foreach (var ctl in list)
                            {
                                dtl.Add(ctl.DailyTask);
                            }
                            TaskManager.GetTaskGroup(tabPage.Name).DailyTasks = dtl;
                        });

                        metroTabControl1.TabPages.Add(tabPage);

                        foreach (var task in taskgroup.DailyTasks)
                        {
                            TaskForm form = new TaskForm(this, task);
                            form.Theme = this.metroStyleManager1.Theme;
                            form.Show();
                            tabPage.Controls.Add(form);
                            form.FormClosed += form_FormClosed;
                        }
                    }
                });
            lc.Parent = this;
            lc.Dock = DockStyle.Fill;
            this.Controls.Add(lc);
            this.Controls.SetChildIndex(lc, 0);
        }
Ejemplo n.º 9
0
        public Bloc_Fenetre(Size taille_fenetre)
        {
            fenetre          = new MetroFramework.Controls.MetroTabPage();
            fenetre.Location = new System.Drawing.Point(4, 22);
            fenetre.Name     = "fenetre";
            fenetre.Padding  = new System.Windows.Forms.Padding(3);
            fenetre.Size     = taille_fenetre;
            fenetre.UseVisualStyleBackColor = true;

            position_y = fenetre.Height - 40;
        }
Ejemplo n.º 10
0
        private MetroFramework.Controls.MetroTabPage createtpage(int id)
        {
            #region --createtpage

            var tpage = new MetroFramework.Controls.MetroTabPage();
            tpage.Padding = new Padding(2);
            //tpage.Theme = uninfeDummy.mainForm.uTheme;
            //tpage.Style = uninfeDummy.mainForm.uStyle;

            switch (id)
            {
                case 0:
                    tpage.Text = "Principal";
                    //tpage.AutoScroll = (Propriedade.TipoAplicativo == TipoAplicativo.Nfe || Propriedade.TipoExecucao == TipoExecucao.teAll);
                    uce_divs = new Formularios.userConfiguracao_diversos();
                    uce_divs.uConfiguracoes = this;
                    uce_divs.changeEvent += changed_Modificado;
                    tpage.Controls.Add(uce_divs);
                    break;
                case 1:
                    tpage.Text = "Pastas";
                    //tpage.AutoScroll = (Propriedade.TipoAplicativo == TipoAplicativo.Nfe || Propriedade.TipoExecucao == TipoExecucao.teAll);
                    uce_pastas = new Formularios.userConfiguracao_pastas();
                    uce_pastas.changeEvent += changed_Modificado;
                    tpage.Controls.Add(uce_pastas);
                    break;
                case 2:
                    tpage.Text = "Certificado digital";
                    uce_cert = new Formularios.userConfiguracao_certificado();
                    uce_cert.changeEvent += changed_Modificado;
                    uce_cert.ucPastas = this.uce_pastas;
                    tpage.Controls.Add(uce_cert);
                    break;
                case 3:
                    tpage.Text = "FTP";
                    uce_ftp = new Formularios.userConfiguracao_ftp();
                    uce_ftp.changeEvent += changed_Modificado;
                    tpage.Controls.Add(uce_ftp);
                    break;
                case 4:
                    tpage.Text = "DANFE";
                    tpage.AutoScroll = true;
                    uce_danfe = new Formularios.userConfiguracao_danfe();
                    uce_danfe.changeEvent += changed_Modificado;
                    tpage.Controls.Add(uce_danfe);
                    break;
            }
            tpage.Controls[tpage.Controls.Count - 1].Dock = DockStyle.Fill;

            return tpage;

            #endregion
        }
Ejemplo n.º 11
0
        private void CreateControles()
        {
            #region --CreateControles

            cbEmpresas.Visible = metroLabel2.Visible = true;

            if (uc_geral == null)
            {
                tc_empresa.TabPages.Add(_tpEmpresa_divs                = createtpage(0));
                tc_empresa.TabPages.Add(_tpEmpresa_pastas              = createtpage(1));
                tc_empresa.TabPages.Add(_tpEmpresa_cert                = createtpage(2));
                tc_empresa.TabPages.Add(_tpEmpresa_ftp                 = createtpage(3));
                tc_empresa.TabPages.Add(_tpEmpresa_danfe               = createtpage(4));
                tc_empresa.TabPages.Add(_tpEmpresa_sat                 = createtpage(5));
                tc_empresa.TabPages.Add(_tpEmpresa_resptecnico         = createtpage(6));
                tc_empresa.TabPages.Add(_tpEmpresa_outrasconfiguracoes = createtpage(7));
                uc_geral = new Formularios.userConfiguracao_geral();
                tpGeral.Controls.Add(uc_geral);
            }

            tc_main.SelectedTab    = tpGeral;
            tc_empresa.SelectedTab = _tpEmpresa_divs;

            cbEmpresas.SelectedIndexChanged -= cbEmpresas_SelectedIndexChanged;
            cbEmpresas.DataSource            = null;
            cbEmpresas.DisplayMember         = NFeStrConstants.Nome;
            cbEmpresas.ValueMember           = "Key";
            cbEmpresas.DataSource            = Auxiliar.CarregaEmpresa(false);
            btnExcluir.Visible = cbEmpresas.Items.Count > 0;

            ConfiguracaoApp.CarregarDados();
            uc_geral.PopulateConfGeral();

            userConfiguracoes_Resize(null, null);

            if (cbEmpresas.Items.Count > 0)
            {
                tc_empresa.Enabled               =
                    btnExcluir.Enabled           =
                        cbEmpresas.Enabled       = true;
                cbEmpresas.SelectedIndex         = 0;
                cbEmpresas.SelectedIndexChanged += cbEmpresas_SelectedIndexChanged;
                cbEmpresas_SelectedIndexChanged(null, null);
            }
            else
            {
                CopiaDadosDaEmpresaParaControls(new Empresa(), true);
            }

            #endregion --CreateControles
        }
Ejemplo n.º 12
0
        private void CreateControles()
        {
            #region --CreateControles

            this.cbEmpresas.Visible = this.metroLabel2.Visible = true;

            if (uc_geral == null)
            {
                this.tc_empresa.TabPages.Add(this._tpEmpresa_divs   = this.createtpage(0));
                this.tc_empresa.TabPages.Add(this._tpEmpresa_pastas = this.createtpage(1));
                this.tc_empresa.TabPages.Add(this._tpEmpresa_cert   = this.createtpage(2));
                this.tc_empresa.TabPages.Add(this._tpEmpresa_ftp    = this.createtpage(3));
                this.tc_empresa.TabPages.Add(this._tpEmpresa_danfe  = this.createtpage(4));
                uc_geral = new Formularios.userConfiguracao_geral();
                this.tpGeral.Controls.Add(uc_geral);
            }

            this.tc_main.SelectedTab    = this.tpGeral;
            this.tc_empresa.SelectedTab = this._tpEmpresa_divs;

            this.cbEmpresas.SelectedIndexChanged -= cbEmpresas_SelectedIndexChanged;
            this.cbEmpresas.DataSource            = null;
            this.cbEmpresas.DisplayMember         = NFe.Components.NFeStrConstants.Nome;
            this.cbEmpresas.ValueMember           = "Key";
            this.cbEmpresas.DataSource            = Auxiliar.CarregaEmpresa(false);

            ConfiguracaoApp.CarregarDados();
            uc_geral.PopulateConfGeral();

            userConfiguracoes_Resize(null, null);

            if (this.cbEmpresas.Items.Count > 0)
            {
                this.tc_empresa.Enabled               =
                    this.btnExcluir.Enabled           =
                        this.cbEmpresas.Enabled       = true;
                this.cbEmpresas.SelectedIndex         = 0;
                this.cbEmpresas.SelectedIndexChanged += cbEmpresas_SelectedIndexChanged;
                cbEmpresas_SelectedIndexChanged(null, null);
            }
            else
            {
                this.CopiaDadosDaEmpresaParaControls(new Empresa(), true);
            }

            #endregion
        }
Ejemplo n.º 13
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Legend    legend1    = new System.Windows.Forms.DataVisualization.Charting.Legend();
     System.Windows.Forms.DataVisualization.Charting.Series    series1    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Series    series3    = new System.Windows.Forms.DataVisualization.Charting.Series();
     this.metroTrackBar1      = new MetroFramework.Controls.MetroTrackBar();
     this.metroTrackBar2      = new MetroFramework.Controls.MetroTrackBar();
     this.metroToggle1        = new MetroFramework.Controls.MetroToggle();
     this.metroToggle2        = new MetroFramework.Controls.MetroToggle();
     this.Tab                 = new MetroFramework.Controls.MetroTabControl();
     this.listTab             = new MetroFramework.Controls.MetroTabPage();
     this.ListView_tatList    = new MetroFramework.Controls.MetroListView();
     this.mapTab              = new MetroFramework.Controls.MetroTabPage();
     this.settingsTab         = new MetroFramework.Controls.MetroTabPage();
     this.panel2              = new System.Windows.Forms.Panel();
     this.metroRadioButton7   = new MetroFramework.Controls.MetroRadioButton();
     this.metroRadioButton6   = new MetroFramework.Controls.MetroRadioButton();
     this.metroRadioButton5   = new MetroFramework.Controls.MetroRadioButton();
     this.RadioButton_WB_Auto = new MetroFramework.Controls.MetroRadioButton();
     this.metroRadioButton4   = new MetroFramework.Controls.MetroRadioButton();
     this.metroLabel2         = new MetroFramework.Controls.MetroLabel();
     this.panel5              = new System.Windows.Forms.Panel();
     this.metroTrackBar4      = new MetroFramework.Controls.MetroTrackBar();
     this.metroLabel5         = new MetroFramework.Controls.MetroLabel();
     this.panel4              = new System.Windows.Forms.Panel();
     this.TrackBar_Brightness = new MetroFramework.Controls.MetroTrackBar();
     this.metroLabel4         = new MetroFramework.Controls.MetroLabel();
     this.columnHeader1       = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.timer1              = new System.Windows.Forms.Timer(this.components);
     this.chart_Gsensor       = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.metroToggle3        = new MetroFramework.Controls.MetroToggle();
     this.label_sec           = new MetroFramework.Controls.MetroLabel();
     this.label_X             = new MetroFramework.Controls.MetroLabel();
     this.label_Y             = new MetroFramework.Controls.MetroLabel();
     this.label_Z             = new MetroFramework.Controls.MetroLabel();
     this.metroLabel1         = new MetroFramework.Controls.MetroLabel();
     this.button_stop         = new MetroFramework.Controls.MetroButton();
     this.webBrowser1         = new System.Windows.Forms.WebBrowser();
     this.metroButton1        = new MetroFramework.Controls.MetroButton();
     this.pictureBoxIpl1      = new OpenCvSharp.UserInterface.PictureBoxIpl();
     this.metroButton3        = new MetroFramework.Controls.MetroButton();
     this.mapBtn              = new MetroFramework.Controls.MetroButton();
     this.updownBtn           = new MetroFramework.Controls.MetroButton();
     this.leftrightBtn        = new MetroFramework.Controls.MetroButton();
     this.fowardBtn           = new MetroFramework.Controls.MetroButton();
     this.stopBtn             = new MetroFramework.Controls.MetroButton();
     this.button_play         = new MetroFramework.Controls.MetroButton();
     this.backBtn             = new MetroFramework.Controls.MetroButton();
     this.Tab.SuspendLayout();
     this.listTab.SuspendLayout();
     this.mapTab.SuspendLayout();
     this.settingsTab.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel5.SuspendLayout();
     this.panel4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chart_Gsensor)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxIpl1)).BeginInit();
     this.SuspendLayout();
     //
     // metroTrackBar1
     //
     this.metroTrackBar1.BackColor = System.Drawing.Color.Transparent;
     this.metroTrackBar1.Location  = new System.Drawing.Point(-15, -15);
     this.metroTrackBar1.Name      = "metroTrackBar1";
     this.metroTrackBar1.Size      = new System.Drawing.Size(75, 23);
     this.metroTrackBar1.TabIndex  = 1;
     this.metroTrackBar1.Text      = "metroTrackBar1";
     //
     // metroTrackBar2
     //
     this.metroTrackBar2.BackColor = System.Drawing.Color.Transparent;
     this.metroTrackBar2.Location  = new System.Drawing.Point(12, 370);
     this.metroTrackBar2.Name      = "metroTrackBar2";
     this.metroTrackBar2.Size      = new System.Drawing.Size(700, 23);
     this.metroTrackBar2.TabIndex  = 2;
     this.metroTrackBar2.Text      = "metroTrackBar2";
     this.metroTrackBar2.Scroll   += new System.Windows.Forms.ScrollEventHandler(this.metroTrackBar2_Scroll);
     //
     // metroToggle1
     //
     this.metroToggle1.AutoSize        = true;
     this.metroToggle1.Location        = new System.Drawing.Point(628, 407);
     this.metroToggle1.Name            = "metroToggle1";
     this.metroToggle1.Size            = new System.Drawing.Size(80, 16);
     this.metroToggle1.Style           = MetroFramework.MetroColorStyle.Black;
     this.metroToggle1.TabIndex        = 12;
     this.metroToggle1.Text            = "Off";
     this.metroToggle1.UseSelectable   = true;
     this.metroToggle1.CheckedChanged += new System.EventHandler(this.metroToggle1_CheckedChanged);
     //
     // metroToggle2
     //
     this.metroToggle2.AutoSize        = true;
     this.metroToggle2.Location        = new System.Drawing.Point(506, 407);
     this.metroToggle2.Name            = "metroToggle2";
     this.metroToggle2.Size            = new System.Drawing.Size(80, 16);
     this.metroToggle2.Style           = MetroFramework.MetroColorStyle.Orange;
     this.metroToggle2.TabIndex        = 13;
     this.metroToggle2.Text            = "Off";
     this.metroToggle2.UseSelectable   = true;
     this.metroToggle2.CheckedChanged += new System.EventHandler(this.metroToggle2_CheckedChanged);
     //
     // Tab
     //
     this.Tab.Controls.Add(this.listTab);
     this.Tab.Controls.Add(this.mapTab);
     this.Tab.Controls.Add(this.settingsTab);
     this.Tab.Location      = new System.Drawing.Point(718, 16);
     this.Tab.Name          = "Tab";
     this.Tab.SelectedIndex = 2;
     this.Tab.Size          = new System.Drawing.Size(275, 523);
     this.Tab.Style         = MetroFramework.MetroColorStyle.Black;
     this.Tab.TabIndex      = 17;
     this.Tab.UseSelectable = true;
     //
     // listTab
     //
     this.listTab.Controls.Add(this.ListView_tatList);
     this.listTab.Controls.Add(this.metroButton3);
     this.listTab.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
     this.listTab.HorizontalScrollbarBarColor         = true;
     this.listTab.HorizontalScrollbarHighlightOnWheel = false;
     this.listTab.HorizontalScrollbarSize             = 10;
     this.listTab.Location = new System.Drawing.Point(4, 38);
     this.listTab.Name     = "listTab";
     this.listTab.Size     = new System.Drawing.Size(267, 481);
     this.listTab.Style    = MetroFramework.MetroColorStyle.Black;
     this.listTab.TabIndex = 0;
     this.listTab.Text     = "PlayLists";
     this.listTab.VerticalScrollbarBarColor         = true;
     this.listTab.VerticalScrollbarHighlightOnWheel = false;
     this.listTab.VerticalScrollbarSize             = 10;
     //
     // ListView_tatList
     //
     this.ListView_tatList.Font          = new System.Drawing.Font("Segoe UI", 12F);
     this.ListView_tatList.FullRowSelect = true;
     this.ListView_tatList.Location      = new System.Drawing.Point(3, 66);
     this.ListView_tatList.Name          = "ListView_tatList";
     this.ListView_tatList.OwnerDraw     = true;
     this.ListView_tatList.Size          = new System.Drawing.Size(261, 412);
     this.ListView_tatList.Style         = MetroFramework.MetroColorStyle.Black;
     this.ListView_tatList.TabIndex      = 16;
     this.ListView_tatList.UseCompatibleStateImageBehavior = false;
     this.ListView_tatList.UseSelectable         = true;
     this.ListView_tatList.View                  = System.Windows.Forms.View.Details;
     this.ListView_tatList.SelectedIndexChanged += new System.EventHandler(this.ListView_tatList_SelectedIndexChanged);
     this.ListView_tatList.DoubleClick          += new System.EventHandler(this.ListView_tatList_DoubleClick);
     //
     // mapTab
     //
     this.mapTab.Controls.Add(this.webBrowser1);
     this.mapTab.Controls.Add(this.mapBtn);
     this.mapTab.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
     this.mapTab.HorizontalScrollbarBarColor         = true;
     this.mapTab.HorizontalScrollbarHighlightOnWheel = false;
     this.mapTab.HorizontalScrollbarSize             = 10;
     this.mapTab.Location = new System.Drawing.Point(4, 38);
     this.mapTab.Name     = "mapTab";
     this.mapTab.Size     = new System.Drawing.Size(267, 481);
     this.mapTab.Style    = MetroFramework.MetroColorStyle.Black;
     this.mapTab.TabIndex = 1;
     this.mapTab.Text     = "Map";
     this.mapTab.VerticalScrollbarBarColor         = true;
     this.mapTab.VerticalScrollbarHighlightOnWheel = false;
     this.mapTab.VerticalScrollbarSize             = 10;
     //
     // settingsTab
     //
     this.settingsTab.Controls.Add(this.panel2);
     this.settingsTab.Controls.Add(this.panel5);
     this.settingsTab.Controls.Add(this.panel4);
     this.settingsTab.HorizontalScrollbarBarColor         = true;
     this.settingsTab.HorizontalScrollbarHighlightOnWheel = false;
     this.settingsTab.HorizontalScrollbarSize             = 8;
     this.settingsTab.Location = new System.Drawing.Point(4, 38);
     this.settingsTab.Margin   = new System.Windows.Forms.Padding(3, 2, 3, 2);
     this.settingsTab.Name     = "settingsTab";
     this.settingsTab.Size     = new System.Drawing.Size(267, 481);
     this.settingsTab.TabIndex = 2;
     this.settingsTab.Text     = "Settings";
     this.settingsTab.VerticalScrollbarBarColor         = true;
     this.settingsTab.VerticalScrollbarHighlightOnWheel = false;
     this.settingsTab.VerticalScrollbarSize             = 9;
     //
     // panel2
     //
     this.panel2.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.panel2.Controls.Add(this.metroRadioButton7);
     this.panel2.Controls.Add(this.metroRadioButton6);
     this.panel2.Controls.Add(this.metroRadioButton5);
     this.panel2.Controls.Add(this.RadioButton_WB_Auto);
     this.panel2.Controls.Add(this.metroRadioButton4);
     this.panel2.Controls.Add(this.metroLabel2);
     this.panel2.Location = new System.Drawing.Point(1, 18);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(260, 85);
     this.panel2.TabIndex = 20;
     //
     // metroRadioButton7
     //
     this.metroRadioButton7.AutoSize      = true;
     this.metroRadioButton7.Location      = new System.Drawing.Point(80, 62);
     this.metroRadioButton7.Name          = "metroRadioButton7";
     this.metroRadioButton7.Size          = new System.Drawing.Size(47, 15);
     this.metroRadioButton7.TabIndex      = 8;
     this.metroRadioButton7.Text          = "흐림";
     this.metroRadioButton7.UseSelectable = true;
     //
     // metroRadioButton6
     //
     this.metroRadioButton6.AutoSize      = true;
     this.metroRadioButton6.Location      = new System.Drawing.Point(17, 62);
     this.metroRadioButton6.Name          = "metroRadioButton6";
     this.metroRadioButton6.Size          = new System.Drawing.Size(47, 15);
     this.metroRadioButton6.TabIndex      = 7;
     this.metroRadioButton6.Text          = "맑음";
     this.metroRadioButton6.UseSelectable = true;
     //
     // metroRadioButton5
     //
     this.metroRadioButton5.AutoSize      = true;
     this.metroRadioButton5.Location      = new System.Drawing.Point(157, 42);
     this.metroRadioButton5.Name          = "metroRadioButton5";
     this.metroRadioButton5.Size          = new System.Drawing.Size(59, 15);
     this.metroRadioButton5.TabIndex      = 6;
     this.metroRadioButton5.Text          = "형광등";
     this.metroRadioButton5.UseSelectable = true;
     //
     // RadioButton_WB_Auto
     //
     this.RadioButton_WB_Auto.AutoSize        = true;
     this.RadioButton_WB_Auto.Location        = new System.Drawing.Point(17, 42);
     this.RadioButton_WB_Auto.Name            = "RadioButton_WB_Auto";
     this.RadioButton_WB_Auto.Size            = new System.Drawing.Size(47, 15);
     this.RadioButton_WB_Auto.TabIndex        = 5;
     this.RadioButton_WB_Auto.Text            = "자동";
     this.RadioButton_WB_Auto.UseSelectable   = true;
     this.RadioButton_WB_Auto.CheckedChanged += new System.EventHandler(this.RadioButton_WB_Auto_CheckedChanged);
     //
     // metroRadioButton4
     //
     this.metroRadioButton4.AutoSize      = true;
     this.metroRadioButton4.Location      = new System.Drawing.Point(81, 42);
     this.metroRadioButton4.Name          = "metroRadioButton4";
     this.metroRadioButton4.Size          = new System.Drawing.Size(59, 15);
     this.metroRadioButton4.TabIndex      = 3;
     this.metroRadioButton4.Text          = "백열등";
     this.metroRadioButton4.UseSelectable = true;
     //
     // metroLabel2
     //
     this.metroLabel2.AutoSize = true;
     this.metroLabel2.Location = new System.Drawing.Point(17, 14);
     this.metroLabel2.Name     = "metroLabel2";
     this.metroLabel2.Size     = new System.Drawing.Size(93, 19);
     this.metroLabel2.TabIndex = 2;
     this.metroLabel2.Text     = "화이트밸런스";
     //
     // panel5
     //
     this.panel5.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.panel5.Controls.Add(this.metroTrackBar4);
     this.panel5.Controls.Add(this.metroLabel5);
     this.panel5.Location = new System.Drawing.Point(3, 218);
     this.panel5.Name     = "panel5";
     this.panel5.Size     = new System.Drawing.Size(255, 76);
     this.panel5.TabIndex = 11;
     //
     // metroTrackBar4
     //
     this.metroTrackBar4.BackColor     = System.Drawing.Color.Transparent;
     this.metroTrackBar4.Location      = new System.Drawing.Point(14, 43);
     this.metroTrackBar4.Maximum       = 4;
     this.metroTrackBar4.Minimum       = -4;
     this.metroTrackBar4.Name          = "metroTrackBar4";
     this.metroTrackBar4.Size          = new System.Drawing.Size(223, 23);
     this.metroTrackBar4.TabIndex      = 7;
     this.metroTrackBar4.Text          = "metroTrackBar4";
     this.metroTrackBar4.Value         = 0;
     this.metroTrackBar4.ValueChanged += new System.EventHandler(this.metroTrackBar4_ValueChanged);
     //
     // metroLabel5
     //
     this.metroLabel5.AutoSize = true;
     this.metroLabel5.Location = new System.Drawing.Point(17, 12);
     this.metroLabel5.Name     = "metroLabel5";
     this.metroLabel5.Size     = new System.Drawing.Size(37, 19);
     this.metroLabel5.TabIndex = 5;
     this.metroLabel5.Text     = "명암";
     //
     // panel4
     //
     this.panel4.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.panel4.Controls.Add(this.TrackBar_Brightness);
     this.panel4.Controls.Add(this.metroLabel4);
     this.panel4.Location = new System.Drawing.Point(0, 120);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(255, 76);
     this.panel4.TabIndex = 10;
     //
     // TrackBar_Brightness
     //
     this.TrackBar_Brightness.BackColor     = System.Drawing.Color.Transparent;
     this.TrackBar_Brightness.Location      = new System.Drawing.Point(17, 38);
     this.TrackBar_Brightness.Maximum       = 4;
     this.TrackBar_Brightness.Minimum       = -4;
     this.TrackBar_Brightness.Name          = "TrackBar_Brightness";
     this.TrackBar_Brightness.Size          = new System.Drawing.Size(223, 23);
     this.TrackBar_Brightness.TabIndex      = 6;
     this.TrackBar_Brightness.Text          = "metroTrackBar5";
     this.TrackBar_Brightness.Value         = 0;
     this.TrackBar_Brightness.ValueChanged += new System.EventHandler(this.TrackBar_Brightness_ValueChanged);
     //
     // metroLabel4
     //
     this.metroLabel4.AutoSize = true;
     this.metroLabel4.Location = new System.Drawing.Point(17, 12);
     this.metroLabel4.Name     = "metroLabel4";
     this.metroLabel4.Size     = new System.Drawing.Size(37, 19);
     this.metroLabel4.TabIndex = 5;
     this.metroLabel4.Text     = "밝기";
     //
     // timer1
     //
     this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
     //
     // chart_Gsensor
     //
     chartArea1.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount;
     chartArea1.AxisX.IntervalType     = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Number;
     chartArea1.AxisX.Maximum          = 500D;
     chartArea1.AxisY.Interval         = 2D;
     chartArea1.AxisY.Maximum          = 4D;
     chartArea1.AxisY.Minimum          = -4D;
     chartArea1.BorderDashStyle        = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
     chartArea1.Name = "Gsensor";
     this.chart_Gsensor.ChartAreas.Add(chartArea1);
     legend1.Name = "Legend1";
     this.chart_Gsensor.Legends.Add(legend1);
     this.chart_Gsensor.Location = new System.Drawing.Point(12, 440);
     this.chart_Gsensor.Margin   = new System.Windows.Forms.Padding(3, 2, 3, 2);
     this.chart_Gsensor.Name     = "chart_Gsensor";
     series1.ChartArea           = "Gsensor";
     series1.ChartType           = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series1.Legend    = "Legend1";
     series1.Name      = "X";
     series2.ChartArea = "Gsensor";
     series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series2.Legend    = "Legend1";
     series2.Name      = "Y";
     series3.ChartArea = "Gsensor";
     series3.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series3.Legend    = "Legend1";
     series3.Name      = "Z";
     this.chart_Gsensor.Series.Add(series1);
     this.chart_Gsensor.Series.Add(series2);
     this.chart_Gsensor.Series.Add(series3);
     this.chart_Gsensor.Size     = new System.Drawing.Size(696, 99);
     this.chart_Gsensor.TabIndex = 19;
     this.chart_Gsensor.Text     = "chart1";
     //
     // metroToggle3
     //
     this.metroToggle3.AutoSize        = true;
     this.metroToggle3.Location        = new System.Drawing.Point(362, 407);
     this.metroToggle3.Name            = "metroToggle3";
     this.metroToggle3.Size            = new System.Drawing.Size(80, 16);
     this.metroToggle3.Style           = MetroFramework.MetroColorStyle.Black;
     this.metroToggle3.TabIndex        = 20;
     this.metroToggle3.Text            = "Off";
     this.metroToggle3.UseSelectable   = true;
     this.metroToggle3.CheckedChanged += new System.EventHandler(this.metroToggle3_CheckedChanged);
     //
     // label_sec
     //
     this.label_sec.AutoSize = true;
     this.label_sec.Location = new System.Drawing.Point(202, 429);
     this.label_sec.Name     = "label_sec";
     this.label_sec.Size     = new System.Drawing.Size(0, 0);
     this.label_sec.TabIndex = 22;
     //
     // label_X
     //
     this.label_X.AutoSize = true;
     this.label_X.Location = new System.Drawing.Point(281, 429);
     this.label_X.Name     = "label_X";
     this.label_X.Size     = new System.Drawing.Size(0, 0);
     this.label_X.TabIndex = 23;
     //
     // label_Y
     //
     this.label_Y.AutoSize = true;
     this.label_Y.Location = new System.Drawing.Point(362, 428);
     this.label_Y.Name     = "label_Y";
     this.label_Y.Size     = new System.Drawing.Size(0, 0);
     this.label_Y.TabIndex = 24;
     //
     // label_Z
     //
     this.label_Z.AutoSize = true;
     this.label_Z.Location = new System.Drawing.Point(444, 429);
     this.label_Z.Name     = "label_Z";
     this.label_Z.Size     = new System.Drawing.Size(0, 0);
     this.label_Z.TabIndex = 25;
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.Location = new System.Drawing.Point(247, 429);
     this.metroLabel1.Name     = "metroLabel1";
     this.metroLabel1.Size     = new System.Drawing.Size(81, 19);
     this.metroLabel1.TabIndex = 26;
     this.metroLabel1.Text     = "metroLabel1";
     //
     // button_stop
     //
     this.button_stop.Enabled       = false;
     this.button_stop.Location      = new System.Drawing.Point(52, 399);
     this.button_stop.Margin        = new System.Windows.Forms.Padding(3, 2, 3, 2);
     this.button_stop.Name          = "button_stop";
     this.button_stop.Size          = new System.Drawing.Size(51, 35);
     this.button_stop.TabIndex      = 27;
     this.button_stop.Text          = "일시정지";
     this.button_stop.UseSelectable = true;
     this.button_stop.Visible       = false;
     this.button_stop.Click        += new System.EventHandler(this.button_stop_Click);
     //
     // webBrowser1
     //
     this.webBrowser1.Location    = new System.Drawing.Point(14, 78);
     this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
     this.webBrowser1.Name        = "webBrowser1";
     this.webBrowser1.Size        = new System.Drawing.Size(250, 337);
     this.webBrowser1.TabIndex    = 15;
     //
     // metroButton1
     //
     this.metroButton1.BackColor             = System.Drawing.Color.White;
     this.metroButton1.BackgroundImage       = global::MetroUI_ver2.Properties.Resources.camera;
     this.metroButton1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.metroButton1.Location      = new System.Drawing.Point(321, 399);
     this.metroButton1.Name          = "metroButton1";
     this.metroButton1.Size          = new System.Drawing.Size(35, 35);
     this.metroButton1.TabIndex      = 28;
     this.metroButton1.UseSelectable = true;
     //
     // pictureBoxIpl1
     //
     this.pictureBoxIpl1.Location = new System.Drawing.Point(3, 2);
     this.pictureBoxIpl1.Margin   = new System.Windows.Forms.Padding(3, 2, 3, 2);
     this.pictureBoxIpl1.Name     = "pictureBoxIpl1";
     this.pictureBoxIpl1.Size     = new System.Drawing.Size(710, 362);
     this.pictureBoxIpl1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBoxIpl1.TabIndex = 21;
     this.pictureBoxIpl1.TabStop  = false;
     //
     // metroButton3
     //
     this.metroButton3.BackColor             = System.Drawing.Color.White;
     this.metroButton3.BackgroundImage       = global::MetroUI_ver2.Properties.Resources.folder;
     this.metroButton3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.metroButton3.Location      = new System.Drawing.Point(86, 25);
     this.metroButton3.Name          = "metroButton3";
     this.metroButton3.Size          = new System.Drawing.Size(83, 35);
     this.metroButton3.TabIndex      = 15;
     this.metroButton3.Text          = "불러오기";
     this.metroButton3.TextAlign     = System.Drawing.ContentAlignment.MiddleRight;
     this.metroButton3.UseSelectable = true;
     this.metroButton3.Click        += new System.EventHandler(this.metroButton3_Click);
     //
     // mapBtn
     //
     this.mapBtn.BackColor             = System.Drawing.Color.White;
     this.mapBtn.BackgroundImage       = global::MetroUI_ver2.Properties.Resources.location_point;
     this.mapBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.mapBtn.Location      = new System.Drawing.Point(80, 21);
     this.mapBtn.Name          = "mapBtn";
     this.mapBtn.Size          = new System.Drawing.Size(82, 35);
     this.mapBtn.TabIndex      = 14;
     this.mapBtn.Text          = "연결하기";
     this.mapBtn.TextAlign     = System.Drawing.ContentAlignment.MiddleRight;
     this.mapBtn.UseSelectable = true;
     //
     // updownBtn
     //
     this.updownBtn.BackgroundImage       = global::MetroUI_ver2.Properties.Resources.updown;
     this.updownBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.updownBtn.Location      = new System.Drawing.Point(470, 397);
     this.updownBtn.Name          = "updownBtn";
     this.updownBtn.Size          = new System.Drawing.Size(35, 35);
     this.updownBtn.TabIndex      = 11;
     this.updownBtn.UseSelectable = true;
     //
     // leftrightBtn
     //
     this.leftrightBtn.BackgroundImage       = global::MetroUI_ver2.Properties.Resources.leftright;
     this.leftrightBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.leftrightBtn.Location      = new System.Drawing.Point(592, 399);
     this.leftrightBtn.Name          = "leftrightBtn";
     this.leftrightBtn.Size          = new System.Drawing.Size(35, 35);
     this.leftrightBtn.TabIndex      = 10;
     this.leftrightBtn.UseSelectable = true;
     //
     // fowardBtn
     //
     this.fowardBtn.BackgroundImage       = global::MetroUI_ver2.Properties.Resources.fast_forward_arrows_button;
     this.fowardBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.fowardBtn.Location      = new System.Drawing.Point(150, 399);
     this.fowardBtn.Name          = "fowardBtn";
     this.fowardBtn.Size          = new System.Drawing.Size(35, 35);
     this.fowardBtn.TabIndex      = 6;
     this.fowardBtn.UseSelectable = true;
     //
     // stopBtn
     //
     this.stopBtn.BackgroundImage       = global::MetroUI_ver2.Properties.Resources.stop_button;
     this.stopBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.stopBtn.Location      = new System.Drawing.Point(104, 399);
     this.stopBtn.Name          = "stopBtn";
     this.stopBtn.Size          = new System.Drawing.Size(35, 35);
     this.stopBtn.TabIndex      = 5;
     this.stopBtn.UseSelectable = true;
     //
     // button_play
     //
     this.button_play.BackgroundImage       = global::MetroUI_ver2.Properties.Resources.play_button__1_;
     this.button_play.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.button_play.Location      = new System.Drawing.Point(58, 399);
     this.button_play.Name          = "button_play";
     this.button_play.Size          = new System.Drawing.Size(35, 35);
     this.button_play.TabIndex      = 4;
     this.button_play.UseSelectable = true;
     //
     // backBtn
     //
     this.backBtn.BackgroundImage       = global::MetroUI_ver2.Properties.Resources.previous;
     this.backBtn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.backBtn.Location      = new System.Drawing.Point(12, 399);
     this.backBtn.Name          = "backBtn";
     this.backBtn.Size          = new System.Drawing.Size(35, 35);
     this.backBtn.TabIndex      = 3;
     this.backBtn.UseSelectable = true;
     //
     // player_ctr
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.White;
     this.Controls.Add(this.metroButton1);
     this.Controls.Add(this.metroLabel1);
     this.Controls.Add(this.label_Z);
     this.Controls.Add(this.label_Y);
     this.Controls.Add(this.label_X);
     this.Controls.Add(this.label_sec);
     this.Controls.Add(this.pictureBoxIpl1);
     this.Controls.Add(this.metroToggle3);
     this.Controls.Add(this.chart_Gsensor);
     this.Controls.Add(this.Tab);
     this.Controls.Add(this.metroToggle2);
     this.Controls.Add(this.metroToggle1);
     this.Controls.Add(this.updownBtn);
     this.Controls.Add(this.leftrightBtn);
     this.Controls.Add(this.fowardBtn);
     this.Controls.Add(this.stopBtn);
     this.Controls.Add(this.button_play);
     this.Controls.Add(this.backBtn);
     this.Controls.Add(this.metroTrackBar2);
     this.Controls.Add(this.metroTrackBar1);
     this.Controls.Add(this.button_stop);
     this.Name  = "player_ctr";
     this.Size  = new System.Drawing.Size(1000, 550);
     this.Load += new System.EventHandler(this.player_ctr_Load);
     this.Tab.ResumeLayout(false);
     this.listTab.ResumeLayout(false);
     this.mapTab.ResumeLayout(false);
     this.settingsTab.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     this.panel5.ResumeLayout(false);
     this.panel5.PerformLayout();
     this.panel4.ResumeLayout(false);
     this.panel4.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chart_Gsensor)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxIpl1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 14
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要修改
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     MetroFramework.Controls.MetroTabPage metroTabPage2;
     this.materialGroupBox4    = new MaterialSkin.Controls.MaterialGroupBox();
     this.materialIconButton13 = new MaterialSkin.Controls.MaterialIconButton();
     this.metroTabControl2     = new MetroFramework.Controls.MetroTabControl();
     this.materialListView2    = new MaterialSkin.Controls.MaterialListView();
     metroTabPage2             = new MetroFramework.Controls.MetroTabPage();
     this.materialGroupBox4.SuspendLayout();
     this.metroTabControl2.SuspendLayout();
     metroTabPage2.SuspendLayout();
     this.SuspendLayout();
     //
     // materialGroupBox4
     //
     this.materialGroupBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(246)))));
     this.materialGroupBox4.Controls.Add(this.materialIconButton13);
     this.materialGroupBox4.Controls.Add(this.metroTabControl2);
     this.materialGroupBox4.Depth           = 0;
     this.materialGroupBox4.DisplayStyle    = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.materialGroupBox4.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.materialGroupBox4.Font            = new System.Drawing.Font("Microsoft Sans Serif", 10F);
     this.materialGroupBox4.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(165)))), ((int)(((byte)(31)))));
     this.materialGroupBox4.Icon            = global::MaterialSkinExample.Properties.Resources.zuji_copy_32x32_lightOrange;
     this.materialGroupBox4.IconAlign       = System.Drawing.ContentAlignment.MiddleLeft;
     this.materialGroupBox4.IconMargin      = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.materialGroupBox4.IconSize        = new System.Drawing.Size(20, 20);
     this.materialGroupBox4.Location        = new System.Drawing.Point(0, 0);
     this.materialGroupBox4.MouseState      = MaterialSkin.MouseState.HOVER;
     this.materialGroupBox4.Name            = "materialGroupBox4";
     this.materialGroupBox4.Size            = new System.Drawing.Size(779, 426);
     this.materialGroupBox4.SplitLineWeight = 2;
     this.materialGroupBox4.TabIndex        = 4;
     this.materialGroupBox4.TabStop         = false;
     this.materialGroupBox4.Text            = "在办事项状态跟踪";
     this.materialGroupBox4.TextRectangle   = new System.Drawing.Rectangle(20, 0, 172, 20);
     //
     // materialIconButton13
     //
     this.materialIconButton13.AutoSize     = true;
     this.materialIconButton13.Depth        = 0;
     this.materialIconButton13.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.materialIconButton13.Icon         = global::MaterialSkinExample.Properties.Resources.icon_AR_jingtoushuaxin_32x32_lightOrange;
     this.materialIconButton13.IconAlign    = System.Drawing.ContentAlignment.MiddleCenter;
     this.materialIconButton13.IconMargin   = new System.Windows.Forms.Padding(0);
     this.materialIconButton13.IconSize     = new System.Drawing.Size(20, 20);
     this.materialIconButton13.Location     = new System.Drawing.Point(755, -2);
     this.materialIconButton13.MouseState   = MaterialSkin.MouseState.HOVER;
     this.materialIconButton13.Name         = "materialIconButton13";
     this.materialIconButton13.Primary      = true;
     this.materialIconButton13.Size         = new System.Drawing.Size(20, 20);
     this.materialIconButton13.TabIndex     = 3;
     this.materialIconButton13.Text         = "materialIconButton13";
     //
     // metroTabControl2
     //
     this.metroTabControl2.Controls.Add(metroTabPage2);
     this.metroTabControl2.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.metroTabControl2.Location      = new System.Drawing.Point(0, 23);
     this.metroTabControl2.Name          = "metroTabControl2";
     this.metroTabControl2.SelectedIndex = 0;
     this.metroTabControl2.Size          = new System.Drawing.Size(779, 403);
     this.metroTabControl2.TabIndex      = 0;
     this.metroTabControl2.UseSelectable = true;
     //
     // metroTabPage2
     //
     metroTabPage2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(246)))));
     metroTabPage2.Controls.Add(this.materialListView2);
     metroTabPage2.HorizontalScrollbarBarColor         = true;
     metroTabPage2.HorizontalScrollbarHighlightOnWheel = false;
     metroTabPage2.HorizontalScrollbarSize             = 10;
     metroTabPage2.Location = new System.Drawing.Point(4, 38);
     metroTabPage2.Margin   = new System.Windows.Forms.Padding(0);
     metroTabPage2.Name     = "metroTabPage2";
     metroTabPage2.Padding  = new System.Windows.Forms.Padding(1, 0, 0, 0);
     metroTabPage2.Size     = new System.Drawing.Size(771, 361);
     metroTabPage2.TabIndex = 0;
     metroTabPage2.Text     = "预算录入";
     metroTabPage2.VerticalScrollbarBarColor         = true;
     metroTabPage2.VerticalScrollbarHighlightOnWheel = false;
     metroTabPage2.VerticalScrollbarSize             = 10;
     //
     // materialListView2
     //
     this.materialListView2.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(246)))));
     this.materialListView2.BorderStyle   = System.Windows.Forms.BorderStyle.None;
     this.materialListView2.Depth         = 0;
     this.materialListView2.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.materialListView2.Font          = new System.Drawing.Font("Microsoft Sans Serif", 24F);
     this.materialListView2.FullRowSelect = true;
     this.materialListView2.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.materialListView2.Location      = new System.Drawing.Point(1, 0);
     this.materialListView2.Margin        = new System.Windows.Forms.Padding(0);
     this.materialListView2.MouseLocation = new System.Drawing.Point(-1, -1);
     this.materialListView2.MouseState    = MaterialSkin.MouseState.OUT;
     this.materialListView2.Name          = "materialListView2";
     this.materialListView2.OwnerDraw     = true;
     this.materialListView2.Size          = new System.Drawing.Size(770, 361);
     this.materialListView2.TabIndex      = 2;
     this.materialListView2.UseCompatibleStateImageBehavior = false;
     this.materialListView2.View = System.Windows.Forms.View.Details;
     //
     // UCtrlBusinessTrackingRegion
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.Transparent;
     this.Controls.Add(this.materialGroupBox4);
     this.Name = "UCtrlBusinessTrackingRegion";
     this.Size = new System.Drawing.Size(779, 426);
     this.materialGroupBox4.ResumeLayout(false);
     this.materialGroupBox4.PerformLayout();
     this.metroTabControl2.ResumeLayout(false);
     metroTabPage2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 15
0
        private void addPage()
        {
            try
            {
                if (build == max)
                {
                    sendMsgToStatus("已自动拦截超出的载体");
                    return;
                }
                #region start
                // 1 : 1.1
                MetroFramework.Controls.MetroTabPage         nPage = new MetroFramework.Controls.MetroTabPage();
                System.Windows.Forms.Integration.ElementHost nHost = new System.Windows.Forms.Integration.ElementHost();

                // 1.2
                //nHost.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)));
                nHost.Dock          = DockStyle.Fill;
                nHost.BackColor     = System.Drawing.Color.White;
                nHost.Location      = new System.Drawing.Point(0, 0);
                nHost.Name          = "eleHost" + build;
                nHost.Size          = new System.Drawing.Size(756, 313);
                nHost.TabIndex      = 2;
                nHost.ChildChanged += new System.EventHandler <System.Windows.Forms.Integration.ChildChangedEventArgs>(this.eleCodeBox_ChildChanged);
                nHost.Child         = null;

                // 1.3
                this.mtp.Controls.Add(nPage);

                // 1.4
                nPage.Controls.Add(nHost);
                nPage.HorizontalScrollbarBarColor         = true;
                nPage.HorizontalScrollbarHighlightOnWheel = false;
                nPage.HorizontalScrollbarSize             = 10;
                nPage.Location = new System.Drawing.Point(4, 38);
                nPage.Name     = "nPage" + build;
                nPage.Size     = new System.Drawing.Size(756, 313);
                nPage.TabIndex = 0;
                nPage.Text     = "AreaCode" + (build + 1);
                nPage.UseVisualStyleBackColor           = true;
                nPage.VerticalScrollbarBarColor         = true;
                nPage.VerticalScrollbarHighlightOnWheel = false;
                nPage.VerticalScrollbarSize             = 10;
                // done

                // 2
                this.codeArea[build] = new TextEditor
                {
                    HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Hidden,
                    ShowLineNumbers = true,
                    Padding         = new System.Windows.Thickness(15),
                    FontFamily      = new FontFamily("Consolas"),
                    FontSize        = 13
                };
                // done


                // 3 : 3.1
                nHost.Child = codeArea[build];
                SearchPanel.Install(codeArea[build].TextArea);

                // 3.2
                string   name     = Assembly.GetExecutingAssembly().GetName().Name + ".Python.xshd";
                Assembly assembly = Assembly.GetExecutingAssembly();
                using (Stream s = assembly.GetManifestResourceStream(name))
                {
                    using (XmlTextReader reader = new XmlTextReader(s))
                    {
                        var xshd = HighlightingLoader.LoadXshd(reader);
                        codeArea[build].SyntaxHighlighting = HighlightingLoader.Load(xshd, HighlightingManager.Instance);
                    }
                }

                // 3.3
                codeArea[build].TextArea.TextEntering += codebox_TextArea_TextEntering;
                codeArea[build].TextArea.TextEntered  += codebox_TextArea_TextEntered;

                // 3.4
                foldingManager = FoldingManager.Install(codeArea[build].TextArea);
                foldingStrategy.UpdateFoldings(foldingManager, codeArea[build].Document);

                // 3.5
                codeArea[build].KeyUp += new System.Windows.Input.KeyEventHandler(run_KeyUp);
                // done
                #endregion
                ++build;
            }
            catch (Exception ex)
            {
                PyCodeConfig.Config.writeConfiguration(LogPath, DateTime.Now.Date.ToString(), DateTime.Now.TimeOfDay.ToString(), ex.ToString());
            }
        }
Ejemplo n.º 16
0
 private void ShowTabPage(MetroFramework.Controls.MetroTabControl ctl, MetroFramework.Controls.MetroTabPage page)
 {
     ctl.ShowTab(page);
 }
Ejemplo n.º 17
0
 private bool IsTabPageHidden(MetroFramework.Controls.MetroTabControl ctl, MetroFramework.Controls.MetroTabPage page)
 {
     return(ctl.IsTabHidden(page) ? true : false);
 }
Ejemplo n.º 18
0
 private void HideTabPage(MetroFramework.Controls.MetroTabControl ctl, MetroFramework.Controls.MetroTabPage page)
 {
     ctl.HideTab(page);
 }
Ejemplo n.º 19
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();
 }
Ejemplo n.º 20
0
        private void CreateControles()
        {
            #region --CreateControles

            this.cbEmpresas.Visible = this.metroLabel2.Visible = true;

            if (uc_geral == null)
            {
                this.tc_empresa.TabPages.Add(this._tpEmpresa_divs = this.createtpage(0));
                this.tc_empresa.TabPages.Add(this._tpEmpresa_pastas = this.createtpage(1));
                this.tc_empresa.TabPages.Add(this._tpEmpresa_cert = this.createtpage(2));
                this.tc_empresa.TabPages.Add(this._tpEmpresa_ftp = this.createtpage(3));
                this.tc_empresa.TabPages.Add(this._tpEmpresa_danfe = this.createtpage(4));
                uc_geral = new Formularios.userConfiguracao_geral();
                this.tpGeral.Controls.Add(uc_geral);
            }

            this.tc_main.SelectedTab = this.tpGeral;
            this.tc_empresa.SelectedTab = this._tpEmpresa_divs;

            this.cbEmpresas.SelectedIndexChanged -= cbEmpresas_SelectedIndexChanged;
            this.cbEmpresas.DataSource = null;
            this.cbEmpresas.DisplayMember = NFe.Components.NFeStrConstants.Nome;
            this.cbEmpresas.ValueMember = "Key";
            this.cbEmpresas.DataSource = Auxiliar.CarregaEmpresa(false);

            ConfiguracaoApp.CarregarDados();
            uc_geral.PopulateConfGeral();

            userConfiguracoes_Resize(null, null);

            if (this.cbEmpresas.Items.Count > 0)
            {
                this.tc_empresa.Enabled =
                    this.btnExcluir.Enabled =
                    this.cbEmpresas.Enabled = true;
                this.cbEmpresas.SelectedIndex = 0;
                this.cbEmpresas.SelectedIndexChanged += cbEmpresas_SelectedIndexChanged;
                cbEmpresas_SelectedIndexChanged(null, null);
            }
            else
                this.CopiaDadosDaEmpresaParaControls(new Empresa(), true);

            #endregion
        }