Ejemplo n.º 1
0
        private void InitControls()
        {
            _scrollViewer           = (ScrollViewer)GetTemplateChild("ScrollViewer");
            _container              = (Grid)GetTemplateChild("Container");
            _pullToRefreshIndicator = (Border)GetTemplateChild("PullToRefreshIndicator");
            _pullProgressBar        = (ProgressBar)GetTemplateChild("PullProgressBar");
            _refreshProgressRing    = (ProgressRing)GetTemplateChild("RefreshProgressRing");
            _loadMoreProgressBar    = (ProgressBar)GetTemplateChild("LoadMoreProgressBar");
            _floatButton            = (XPButton)GetTemplateChild("FloatButton");
            _floatButtonShadow      = (Image)GetTemplateChild("FloatButtonShadow");
            _itemsPresenter         = (ItemsPresenter)GetTemplateChild("ItemsPresenter");
            _emptyTemplateControl   = (ContentControl)GetTemplateChild("EmptyTemplateControl");

            Utils.SetBase64ToImage((BitmapSource)_floatButtonShadow.Source, FloatBtn_Shadow_Base64);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.propertyGrid1   = new System.Windows.Forms.PropertyGrid();
     this.listViewSysInfo = new UtilityLibrary.WinControls.ListViewEx();
     this.tabControl1     = new FlatTabControl();
     this.tabPage1        = new System.Windows.Forms.TabPage();
     this.tabPage2        = new System.Windows.Forms.TabPage();
     this.okButton        = new XPButton();
     this.linkLabel1      = new System.Windows.Forms.LinkLabel();
     this.tabControl1.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.SuspendLayout();
     //
     // propertyGrid1
     //
     this.propertyGrid1.CommandsVisibleIfAvailable = true;
     this.propertyGrid1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular,
                                                       System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.propertyGrid1.LargeButtons   = false;
     this.propertyGrid1.LineColor      = System.Drawing.SystemColors.ScrollBar;
     this.propertyGrid1.Location       = new System.Drawing.Point(8, 8);
     this.propertyGrid1.Name           = "propertyGrid1";
     this.propertyGrid1.Size           = new System.Drawing.Size(483, 278);
     this.propertyGrid1.TabIndex       = 0;
     this.propertyGrid1.TabStop        = false;
     this.propertyGrid1.Text           = "propertyGrid1";
     this.propertyGrid1.ToolbarVisible = false;
     this.propertyGrid1.ViewBackColor  = System.Drawing.SystemColors.Window;
     this.propertyGrid1.ViewForeColor  = System.Drawing.SystemColors.WindowText;
     //
     // listViewSysInfo
     //
     this.listViewSysInfo.CheckBookEvenRowBackColor = System.Drawing.Color.Empty;
     this.listViewSysInfo.CheckBookEvenRowForeColor = System.Drawing.Color.Empty;
     this.listViewSysInfo.CheckBookLookEnabled      = false;
     this.listViewSysInfo.CheckBookOddRowBackColor  = System.Drawing.Color.Empty;
     this.listViewSysInfo.CheckBookOddRowForeColor  = System.Drawing.Color.Empty;
     this.listViewSysInfo.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular,
                                                         System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.listViewSysInfo.FullRowSelect               = true;
     this.listViewSysInfo.HeaderColor                 = System.Drawing.Color.Empty;
     this.listViewSysInfo.HeaderImageList             = null;
     this.listViewSysInfo.HeaderStyle                 = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.listViewSysInfo.Location                    = new System.Drawing.Point(8, 8);
     this.listViewSysInfo.Name                        = "listViewSysInfo";
     this.listViewSysInfo.PaintSortedColumnBackground = true;
     this.listViewSysInfo.Size                        = new System.Drawing.Size(482, 272);
     this.listViewSysInfo.SortingEnabled              = true;
     this.listViewSysInfo.SortOrder                   = System.Windows.Forms.SortOrder.Ascending;
     this.listViewSysInfo.TabIndex                    = 0;
     this.listViewSysInfo.TabStop                     = false;
     this.listViewSysInfo.View                        = System.Windows.Forms.View.Details;
     //
     // tabControl1
     //
     this.tabControl1.BorderDarkColor  = System.Drawing.SystemColors.ControlDarkDark;
     this.tabControl1.BorderLightColor = System.Drawing.SystemColors.ControlDark;
     this.tabControl1.ControlBackColor = System.Drawing.SystemColors.Control;
     this.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Controls.Add(this.tabPage2);
     this.tabControl1.Location      = new System.Drawing.Point(8, 8);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(504, 320);
     this.tabControl1.TabAlignment  = FlatTabControl.FlatTabAlignment.Top;
     this.tabControl1.TabIndex      = 2;
     this.tabControl1.TextColor     = System.Drawing.SystemColors.ControlText;
     //
     // tabPage1
     //
     this.tabPage1.Controls.Add(this.propertyGrid1);
     this.tabPage1.Location = new System.Drawing.Point(4, 25);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Size     = new System.Drawing.Size(496, 291);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = " Information ";
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.listViewSysInfo);
     this.tabPage2.Location = new System.Drawing.Point(4, 25);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Size     = new System.Drawing.Size(496, 291);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "Loaded Assemblies";
     //
     // okButton
     //
     this.okButton.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.okButton.BtnShape            = emunType.BtnShape.Rectangle;
     this.okButton.BtnStyle            = emunType.XPStyle.Silver;
     this.okButton.ImageIndex          = 0;
     this.okButton.Location            = new System.Drawing.Point(440, 336);
     this.okButton.Name     = "okButton";
     this.okButton.Size     = new System.Drawing.Size(75, 28);
     this.okButton.TabIndex = 42;
     this.okButton.Text     = "OK";
     this.okButton.Click   += new System.EventHandler(this.okButton_Click);
     //
     // linkLabel1
     //
     this.linkLabel1.Location     = new System.Drawing.Point(8, 344);
     this.linkLabel1.Name         = "linkLabel1";
     this.linkLabel1.Size         = new System.Drawing.Size(128, 24);
     this.linkLabel1.TabIndex     = 43;
     this.linkLabel1.TabStop      = true;
     this.linkLabel1.Text         = "System Information";
     this.linkLabel1.LinkClicked +=
         new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
     //
     // ApplicationInfoDialog
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.ClientSize        = new System.Drawing.Size(522, 372);
     this.Controls.Add(this.linkLabel1);
     this.Controls.Add(this.okButton);
     this.Controls.Add(this.tabControl1);
     this.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular,
                                         System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "ApplicationInfoDialog";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Application Information";
     this.Load           += new System.EventHandler(this.Form1_Load);
     this.tabControl1.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 3
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(LoginForm));
     this.cbRemember     = new System.Windows.Forms.CheckBox();
     this.labelTitle     = new System.Windows.Forms.Label();
     this.lblUserName    = new System.Windows.Forms.Label();
     this.txtPassword    = new System.Windows.Forms.TextBox();
     this.txtUserName    = new System.Windows.Forms.TextBox();
     this.lblPassword    = new System.Windows.Forms.Label();
     this.groupBox1      = new System.Windows.Forms.GroupBox();
     this.cultureManager = new Waveface.Localization.CultureManager(this.components);
     this.btnCancel      = new Waveface.Component.XPButton();
     this.btnOK          = new Waveface.Component.XPButton();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // cbRemember
     //
     resources.ApplyResources(this.cbRemember, "cbRemember");
     this.cbRemember.Name = "cbRemember";
     //
     // labelTitle
     //
     resources.ApplyResources(this.labelTitle, "labelTitle");
     this.labelTitle.Name = "labelTitle";
     //
     // lblUserName
     //
     resources.ApplyResources(this.lblUserName, "lblUserName");
     this.lblUserName.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this.lblUserName.Name         = "lblUserName";
     this.lblUserName.DoubleClick += new System.EventHandler(this.lblUserName_DoubleClick);
     //
     // txtPassword
     //
     resources.ApplyResources(this.txtPassword, "txtPassword");
     this.txtPassword.Name = "txtPassword";
     //
     // txtUserName
     //
     resources.ApplyResources(this.txtUserName, "txtUserName");
     this.txtUserName.Name = "txtUserName";
     //
     // lblPassword
     //
     resources.ApplyResources(this.lblPassword, "lblPassword");
     this.lblPassword.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.lblPassword.Name      = "lblPassword";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.txtUserName);
     this.groupBox1.Controls.Add(this.txtPassword);
     this.groupBox1.Controls.Add(this.lblUserName);
     this.groupBox1.Controls.Add(this.lblPassword);
     this.groupBox1.Controls.Add(this.cbRemember);
     resources.ApplyResources(this.groupBox1, "groupBox1");
     this.groupBox1.Name    = "groupBox1";
     this.groupBox1.TabStop = false;
     //
     // cultureManager
     //
     this.cultureManager.ManagedControl    = this;
     this.cultureManager.UICultureChanged += new Waveface.Localization.CultureManager.CultureChangedHandler(this.cultureManager_UICultureChanged);
     //
     // btnCancel
     //
     this.btnCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.btnCancel.BtnShape            = Waveface.Component.emunType.BtnShape.Rectangle;
     this.btnCancel.BtnStyle            = Waveface.Component.emunType.XPStyle.Silver;
     this.btnCancel.DialogResult        = System.Windows.Forms.DialogResult.Cancel;
     resources.ApplyResources(this.btnCancel, "btnCancel");
     this.btnCancel.Name   = "btnCancel";
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // btnOK
     //
     this.btnOK.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.btnOK.BtnShape            = Waveface.Component.emunType.BtnShape.Rectangle;
     this.btnOK.BtnStyle            = Waveface.Component.emunType.XPStyle.Silver;
     this.btnOK.DialogResult        = System.Windows.Forms.DialogResult.OK;
     resources.ApplyResources(this.btnOK, "btnOK");
     this.btnOK.Name   = "btnOK";
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // LoginForm
     //
     resources.ApplyResources(this, "$this");
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.labelTitle);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "LoginForm";
     this.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Hide;
     this.FormClosing    += new System.Windows.Forms.FormClosingEventHandler(this.LoginForm_FormClosing);
     this.Load           += new System.EventHandler(this.LoginForm_Load);
     this.Shown          += new System.EventHandler(this.LoginForm_Shown);
     this.DoubleClick    += new System.EventHandler(this.LoginForm_DoubleClick);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.ResumeLayout(false);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 // private void InitializeComponent()
 // {
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DetailView));
     this.panelTop       = new System.Windows.Forms.Panel();
     this.btnRemove      = new Waveface.Component.XPButton();
     this.btnEdit        = new Waveface.Component.XPButton();
     this.btnComment     = new Waveface.Component.XPButton();
     this.labelWho       = new System.Windows.Forms.Label();
     this.labelTime      = new System.Windows.Forms.Label();
     this.panelMain      = new System.Windows.Forms.Panel();
     this.timerGC        = new System.Windows.Forms.Timer(this.components);
     this.cultureManager = new Waveface.Localization.CultureManager(this.components);
     this.panelTop.SuspendLayout();
     this.SuspendLayout();
     //
     // panelTop
     //
     this.panelTop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(84)))), ((int)(((byte)(95)))), ((int)(((byte)(98)))));
     this.panelTop.Controls.Add(this.btnRemove);
     this.panelTop.Controls.Add(this.btnEdit);
     this.panelTop.Controls.Add(this.btnComment);
     this.panelTop.Controls.Add(this.labelWho);
     this.panelTop.Controls.Add(this.labelTime);
     resources.ApplyResources(this.panelTop, "panelTop");
     this.panelTop.Name = "panelTop";
     //
     // btnRemove
     //
     this.btnRemove.AdjustImageLocation = new System.Drawing.Point(0, 0);
     resources.ApplyResources(this.btnRemove, "btnRemove");
     this.btnRemove.BtnShape = Waveface.Component.emunType.BtnShape.Rectangle;
     this.btnRemove.BtnStyle = Waveface.Component.emunType.XPStyle.Silver;
     this.btnRemove.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(84)))), ((int)(((byte)(95)))), ((int)(((byte)(98)))));
     this.btnRemove.Image = global::Waveface.Properties.Resources.trash;
     this.btnRemove.Name  = "btnRemove";
     this.btnRemove.UseVisualStyleBackColor = true;
     this.btnRemove.Click += new System.EventHandler(this.btnRemove_Click);
     //
     // btnEdit
     //
     this.btnEdit.AdjustImageLocation = new System.Drawing.Point(0, 0);
     resources.ApplyResources(this.btnEdit, "btnEdit");
     this.btnEdit.BtnShape = Waveface.Component.emunType.BtnShape.Rectangle;
     this.btnEdit.BtnStyle = Waveface.Component.emunType.XPStyle.Silver;
     this.btnEdit.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(84)))), ((int)(((byte)(95)))), ((int)(((byte)(98)))));
     this.btnEdit.Image = global::Waveface.Properties.Resources.page;
     this.btnEdit.Name  = "btnEdit";
     this.btnEdit.UseVisualStyleBackColor = true;
     this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
     //
     // btnComment
     //
     this.btnComment.AdjustImageLocation = new System.Drawing.Point(0, 0);
     resources.ApplyResources(this.btnComment, "btnComment");
     this.btnComment.BtnShape = Waveface.Component.emunType.BtnShape.Rectangle;
     this.btnComment.BtnStyle = Waveface.Component.emunType.XPStyle.Silver;
     this.btnComment.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(84)))), ((int)(((byte)(95)))), ((int)(((byte)(98)))));
     this.btnComment.Image = global::Waveface.Properties.Resources.white_edit;
     this.btnComment.Name  = "btnComment";
     this.btnComment.UseVisualStyleBackColor = true;
     this.btnComment.Click += new System.EventHandler(this.btnComment_Click);
     //
     // labelWho
     //
     resources.ApplyResources(this.labelWho, "labelWho");
     this.labelWho.ForeColor = System.Drawing.SystemColors.HighlightText;
     this.labelWho.Name      = "labelWho";
     //
     // labelTime
     //
     resources.ApplyResources(this.labelTime, "labelTime");
     this.labelTime.ForeColor = System.Drawing.SystemColors.HighlightText;
     this.labelTime.Name      = "labelTime";
     //
     // panelMain
     //
     resources.ApplyResources(this.panelMain, "panelMain");
     this.panelMain.Name = "panelMain";
     //
     // timerGC
     //
     this.timerGC.Interval = 60000;
     this.timerGC.Tick    += new System.EventHandler(this.timerGC_Tick);
     //
     // cultureManager
     //
     this.cultureManager.ManagedControl = this;
     //
     // DetailView
     //
     this.Controls.Add(this.panelMain);
     this.Controls.Add(this.panelTop);
     resources.ApplyResources(this, "$this");
     this.Name = "DetailView";
     this.panelTop.ResumeLayout(false);
     this.panelTop.PerformLayout();
     this.ResumeLayout(false);
 }