Inheritance: Control
        public static void AddColumnsHeader(ListView listView, Type type, string[] firstColumns, string[] selectedColumns,
            string[] columnsToIgnore)
        {
            foreach (var firstColumn in firstColumns)
            {
                AddColumnHeaderByProperty(listView, type, firstColumn);
            }

            if (selectedColumns != null)
            {
                var properties = type.GetProperties();

                foreach (var attr in selectedColumns)
                {
                    if (firstColumns.Contains(attr))
                        continue;

                    var prop = properties.First(p => p.Name == attr);
                    AddColumnHeaderByProperty(listView, type, prop.Name);
                }
            }
            else
            {
                foreach (var prop in type.GetProperties().OrderBy(p => p.Name))
                {
                    if (firstColumns.Contains(prop.Name) || columnsToIgnore.Contains(prop.Name))
                        continue;

                    AddColumnHeaderByProperty(listView, type, prop.Name);
                }
            }
        }
 public LlenarLista(ListView list, DataTable tab)
 {
     this.lista = list;
     this.table = tab;
     RowChecked = "";
     FillList();
 }
Exemple #3
0
        public void LoadEmpSchedInListView(ListView lv)
        {
            Emp_Sched es = new Emp_Sched();
            DataTable dt = new DataTable();

            dt = es.SELECT_ALL();
            if (dt != null)
            {
                int ctr = 1;
                foreach (DataRow r in dt.Rows)
                {
                    ListViewItem li = new ListViewItem();
                    li.Text = ctr.ToString();
                    li.SubItems.Add(r["fullname"].ToString());
                    li.SubItems.Add(r["mon"].ToString());
                    li.SubItems.Add(r["tue"].ToString());
                    li.SubItems.Add(r["wed"].ToString());
                    li.SubItems.Add(r["thu"].ToString());
                    li.SubItems.Add(r["fri"].ToString());
                    li.SubItems.Add(r["sat"].ToString());
                    li.SubItems.Add(r["sun"].ToString());
                    li.SubItems.Add(Convert.ToDateTime(r["date_updated"].ToString()).ToShortDateString());
                    lv.Items.Add(li);
                    ctr++;
                }
            }
        }
Exemple #4
0
        /// <summary>
        /// Finishes initializing component by creating ListView and initializing it, subscribing to drag events,
        /// and registering the control</summary>
        void IInitializable.Initialize()
        {
            m_resourcesListView = new ListView();
            m_resourcesListView.SmallImageList = ResourceUtil.GetImageList16();
            m_resourcesListView.AllowDrop = true;
            m_resourcesListView.MultiSelect = true;
            m_resourcesListView.AllowColumnReorder = true;
            m_resourcesListView.LabelEdit = true;
            m_resourcesListView.Dock = DockStyle.Fill;

            m_resourcesListView.DragOver += new DragEventHandler(resourcesListView_DragOver);
            m_resourcesListView.DragDrop += new DragEventHandler(resourcesListView_DragDrop);
            m_resourcesListView.MouseUp += new MouseEventHandler(resourcesListView_MouseUp);
            m_resourcesListViewAdapter = new ListViewAdapter(m_resourcesListView);
            m_resourcesListViewAdapter.LabelEdited +=
                new EventHandler<LabelEditedEventArgs<object>>(resourcesListViewAdapter_LabelEdited);

            m_resourcesControlInfo = new ControlInfo(
                Localizer.Localize("Resources"),
                Localizer.Localize("Resources for selected Event"),
                StandardControlGroup.Bottom);

            m_controlHostService.RegisterControl(m_resourcesListView, m_resourcesControlInfo, this);

            if (m_settingsService != null)
            {
                SettingsServices.RegisterSettings(
                    m_settingsService,
                    this,
                    new BoundPropertyDescriptor(this, () => ListViewSettings, "ListViewSettings", "", "")
                );
            }
        }
Exemple #5
0
        /// <summary>
        /// Finishes initializing component by creating ListView, and initializing it and subscribing it to events</summary>
        void IInitializable.Initialize()
        {
            m_resourcesListView = new ListView();
            m_resourcesListView.AllowDrop = true;
            m_resourcesListView.MultiSelect = true;
            m_resourcesListView.AllowColumnReorder = true;
            m_resourcesListView.LabelEdit = true;
            m_resourcesListView.Dock = DockStyle.Fill;

            m_resourcesListView.DragOver += resourcesListView_DragOver;
            m_resourcesListView.DragDrop += resourcesListView_DragDrop;
            m_resourcesListView.MouseUp += resourcesListView_MouseUp;
            m_resourcesListViewAdapter = new ListViewAdapter(m_resourcesListView);
            m_resourcesListViewAdapter.LabelEdited +=
                resourcesListViewAdapter_LabelEdited;

            m_resourcesControlInfo = new ControlInfo(
                "Resources".Localize(),
                "Resources for selected Event".Localize(),
                StandardControlGroup.Bottom);

            m_controlHostService.RegisterControl(m_resourcesListView, m_resourcesControlInfo, this);

            if (m_settingsService != null)
            {
                m_settingsService.RegisterSettings(this, new BoundPropertyDescriptor(this, () => ListViewSettings, "ListViewSettings", "", ""));
            }
        }
Exemple #6
0
        public void LoadOnListView(ListView lv)
        {
            Leave s = new Leave();
            DataTable dt = new DataTable();

            dt = s.SELECT_ALL();
            if (dt != null)
            {
                int ctr = 1;
                foreach (DataRow r in dt.Rows)
                {
                    ListViewItem li = new ListViewItem();
                    li.Text = ctr.ToString();
                    li.SubItems.Add(r["fullname"].ToString());
                    li.SubItems.Add(r["leavetype"].ToString());
                    li.SubItems.Add(r["leavedate"].ToString());
                    li.SubItems.Add(r["noofdays"].ToString());
                    li.SubItems.Add(r["datefiled"].ToString());

                    lv.Items.Add(li);

                    ctr++;
                }
            }
        }
 public void WriteAlphabetToListView(ListView lv)
 {
     for (int i = 0; i < characters.Count; i++)
     {
         lv.Items.Add(characters[i].ToString());
     }
 }
Exemple #8
0
        public ThreadsUI(PluginMain pluginMain, ImageList imageList)
        {
            this.pluginMain = pluginMain;

            lv = new ListView();
            lv.ShowItemToolTips = true;
            this.imageColumnHeader = new ColumnHeader();
            this.imageColumnHeader.Text = string.Empty;
            this.imageColumnHeader.Width = 20;

            this.frameColumnHeader = new ColumnHeader();
            this.frameColumnHeader.Text = string.Empty;

            lv.Columns.AddRange(new ColumnHeader[] {
            this.imageColumnHeader,
            this.frameColumnHeader});
            lv.FullRowSelect = true;
            lv.BorderStyle = BorderStyle.None;
            lv.Dock = System.Windows.Forms.DockStyle.Fill;

            lv.SmallImageList = imageList;
            runningImageIndex = imageList.Images.IndexOfKey("StartContinue");
            suspendedImageIndex = imageList.Images.IndexOfKey("Pause");

            lv.View = System.Windows.Forms.View.Details;
            lv.MouseDoubleClick += new MouseEventHandler(lv_MouseDoubleClick);
            lv.KeyDown += new KeyEventHandler(lv_KeyDown);
            lv.SizeChanged += new EventHandler(lv_SizeChanged);

            this.Controls.Add(lv);
        }
Exemple #9
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmUpdate));
     this.pictureBox1  = new System.Windows.Forms.PictureBox();
     this.panel1       = new System.Windows.Forms.Panel();
     this.label1       = new System.Windows.Forms.Label();
     this.groupBox2    = new System.Windows.Forms.GroupBox();
     this.lvUpdateList = new System.Windows.Forms.ListView();
     this.chFileName   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.chVersion    = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.chProgress   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.pbDownFile   = new System.Windows.Forms.ProgressBar();
     this.lbState      = new System.Windows.Forms.Label();
     this.groupBox1    = new System.Windows.Forms.GroupBox();
     this.btnNext      = new System.Windows.Forms.Button();
     this.btnCancel    = new System.Windows.Forms.Button();
     this.panel2       = new System.Windows.Forms.Panel();
     this.label4       = new System.Windows.Forms.Label();
     this.linkLabel1   = new System.Windows.Forms.LinkLabel();
     this.label3       = new System.Windows.Forms.Label();
     this.label2       = new System.Windows.Forms.Label();
     this.label5       = new System.Windows.Forms.Label();
     this.groupBox3    = new System.Windows.Forms.GroupBox();
     this.groupBox4    = new System.Windows.Forms.GroupBox();
     this.btnFinish    = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(7, 7);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(80, 223);
     this.pictureBox1.TabIndex = 1;
     this.pictureBox1.TabStop  = false;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.groupBox2);
     this.panel1.Controls.Add(this.lvUpdateList);
     this.panel1.Controls.Add(this.pbDownFile);
     this.panel1.Controls.Add(this.lbState);
     this.panel1.Controls.Add(this.groupBox1);
     this.panel1.Location = new System.Drawing.Point(100, 7);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(312, 223);
     this.panel1.TabIndex = 2;
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.Location = new System.Drawing.Point(13, 15);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(193, 15);
     this.label1.TabIndex = 9;
     this.label1.Text     = "以下为更新文件列表";
     //
     // groupBox2
     //
     this.groupBox2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.groupBox2.Location = new System.Drawing.Point(0, 221);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(312, 2);
     this.groupBox2.TabIndex = 7;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "groupBox2";
     //
     // lvUpdateList
     //
     this.lvUpdateList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.lvUpdateList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.chFileName,
         this.chVersion,
         this.chProgress
     });
     this.lvUpdateList.Location = new System.Drawing.Point(2, 45);
     this.lvUpdateList.Name     = "lvUpdateList";
     this.lvUpdateList.Size     = new System.Drawing.Size(306, 111);
     this.lvUpdateList.TabIndex = 6;
     this.lvUpdateList.UseCompatibleStateImageBehavior = false;
     this.lvUpdateList.View = System.Windows.Forms.View.Details;
     //
     // chFileName
     //
     this.chFileName.Text  = "组件名";
     this.chFileName.Width = 123;
     //
     // chVersion
     //
     this.chVersion.Text  = "版本号";
     this.chVersion.Width = 98;
     //
     // chProgress
     //
     this.chProgress.Text  = "进度";
     this.chProgress.Width = 47;
     //
     // pbDownFile
     //
     this.pbDownFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.pbDownFile.Location = new System.Drawing.Point(2, 186);
     this.pbDownFile.Name     = "pbDownFile";
     this.pbDownFile.Size     = new System.Drawing.Size(308, 15);
     this.pbDownFile.TabIndex = 5;
     //
     // lbState
     //
     this.lbState.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.lbState.Location = new System.Drawing.Point(2, 163);
     this.lbState.Name     = "lbState";
     this.lbState.Size     = new System.Drawing.Size(279, 15);
     this.lbState.TabIndex = 4;
     this.lbState.Text     = "点击“下一步”开始更新文件";
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Location = new System.Drawing.Point(2, 30);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(309, 10);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     //
     // btnNext
     //
     this.btnNext.Location = new System.Drawing.Point(271, 245);
     this.btnNext.Name     = "btnNext";
     this.btnNext.Size     = new System.Drawing.Size(66, 22);
     this.btnNext.TabIndex = 3;
     this.btnNext.Text     = "下一步(&N)>";
     this.btnNext.Click   += new System.EventHandler(this.btnNext_Click);
     //
     // btnCancel
     //
     this.btnCancel.Location = new System.Drawing.Point(344, 245);
     this.btnCancel.Name     = "btnCancel";
     this.btnCancel.Size     = new System.Drawing.Size(67, 22);
     this.btnCancel.TabIndex = 4;
     this.btnCancel.Text     = "取消(&C)";
     this.btnCancel.Click   += new System.EventHandler(this.btnCancel_Click);
     //
     // panel2
     //
     this.panel2.Controls.Add(this.label4);
     this.panel2.Controls.Add(this.linkLabel1);
     this.panel2.Controls.Add(this.label3);
     this.panel2.Controls.Add(this.label2);
     this.panel2.Controls.Add(this.label5);
     this.panel2.Controls.Add(this.groupBox3);
     this.panel2.Controls.Add(this.groupBox4);
     this.panel2.Location = new System.Drawing.Point(7, 245);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(184, 22);
     this.panel2.TabIndex = 5;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(120, 171);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(83, 15);
     this.label4.TabIndex = 13;
     this.label4.Text     = "飞入科技";
     //
     // linkLabel1
     //
     this.linkLabel1.Location     = new System.Drawing.Point(113, 193);
     this.linkLabel1.Name         = "linkLabel1";
     this.linkLabel1.Size         = new System.Drawing.Size(107, 15);
     this.linkLabel1.TabIndex     = 12;
     this.linkLabel1.TabStop      = true;
     this.linkLabel1.Text         = "www.flyintech.com";
     this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(20, 111);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(153, 15);
     this.label3.TabIndex = 11;
     this.label3.Text     = "欢迎以后继续关注我们的产品。";
     //
     // label2
     //
     this.label2.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label2.Location = new System.Drawing.Point(20, 59);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(193, 45);
     this.label2.TabIndex = 10;
     this.label2.Text     = "     程序更新完成,如果程序更新期间被关闭,点击\"完成\"自动更新程序会自动重新启动系统。";
     //
     // label5
     //
     this.label5.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label5.Location = new System.Drawing.Point(13, 7);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(114, 23);
     this.label5.TabIndex = 9;
     this.label5.Text     = "感谢使用在线升级";
     //
     // groupBox3
     //
     this.groupBox3.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.groupBox3.Location = new System.Drawing.Point(0, 20);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(184, 2);
     this.groupBox3.TabIndex = 7;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "groupBox2";
     //
     // groupBox4
     //
     this.groupBox4.Location = new System.Drawing.Point(0, 30);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(233, 7);
     this.groupBox4.TabIndex = 1;
     this.groupBox4.TabStop  = false;
     //
     // btnFinish
     //
     this.btnFinish.Location = new System.Drawing.Point(197, 245);
     this.btnFinish.Name     = "btnFinish";
     this.btnFinish.Size     = new System.Drawing.Size(67, 22);
     this.btnFinish.TabIndex = 3;
     this.btnFinish.Text     = "完成(&F)";
     this.btnFinish.Click   += new System.EventHandler(this.btnFinish_Click);
     //
     // FrmUpdate
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(424, 286);
     this.ControlBox        = false;
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnNext);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.btnFinish);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FrmUpdate";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "自动更新";
     this.Load           += new System.EventHandler(this.FrmUpdate_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 public ListViewSubItemAccessibleObject(ListViewSubItem?owningSubItem, ListViewItem owningItem)
 {
     OwningSubItem   = owningSubItem;
     _owningItem     = owningItem.OrThrowIfNull();
     _owningListView = owningItem.ListView ?? owningItem.Group?.ListView ?? throw new InvalidOperationException(nameof(owningItem.ListView));
 }
Exemple #11
0
 internal ListViewAccessibleObject(ListView owningListView) : base(owningListView)
 {
     _owningListView = owningListView;
 }
Exemple #12
0
 internal ListViewInsertionMark(ListView listView)
 {
     this.listView = listView;
 }
Exemple #13
0
 public ListViewItemBaseAccessibleObject(ListViewItem owningItem)
 {
     _owningItem        = owningItem ?? throw new ArgumentNullException(nameof(owningItem));
     _owningListView    = owningItem.ListView ?? owningItem.Group?.ListView ?? throw new InvalidOperationException(nameof(owningItem.ListView));
     _systemIAccessible = _owningListView.AccessibilityObject.GetSystemIAccessibleInternal();
 }
Exemple #14
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.colHeadCLS   = new System.Windows.Forms.ColumnHeader();
     this.btnOK        = new System.Windows.Forms.Button();
     this.OpcDaSrvList = new System.Windows.Forms.ListView();
     this.colHeadName  = new System.Windows.Forms.ColumnHeader();
     this.colHeadID    = new System.Windows.Forms.ColumnHeader();
     this.label1       = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // colHeadCLS
     //
     this.colHeadCLS.Text  = "CLSID";
     this.colHeadCLS.Width = 208;
     //
     // btnOK
     //
     this.btnOK.Location = new System.Drawing.Point(208, 194);
     this.btnOK.Name     = "btnOK";
     this.btnOK.Size     = new System.Drawing.Size(96, 32);
     this.btnOK.TabIndex = 0;
     this.btnOK.Text     = "Ok";
     this.btnOK.Click   += new System.EventHandler(this.btnOK_Click);
     //
     // OpcDaSrvList
     //
     this.OpcDaSrvList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.colHeadName,
         this.colHeadID,
         this.colHeadCLS
     });
     this.OpcDaSrvList.FullRowSelect = true;
     this.OpcDaSrvList.GridLines     = true;
     this.OpcDaSrvList.HideSelection = false;
     this.OpcDaSrvList.Location      = new System.Drawing.Point(8, 32);
     this.OpcDaSrvList.MultiSelect   = false;
     this.OpcDaSrvList.Name          = "OpcDaSrvList";
     this.OpcDaSrvList.Size          = new System.Drawing.Size(496, 152);
     this.OpcDaSrvList.TabIndex      = 2;
     this.OpcDaSrvList.View          = System.Windows.Forms.View.Details;
     this.OpcDaSrvList.DoubleClick  += new System.EventHandler(this.btnOK_Click);
     //
     // colHeadName
     //
     this.colHeadName.Text  = "Name";
     this.colHeadName.Width = 280;
     //
     // colHeadID
     //
     this.colHeadID.Text  = "ProgID";
     this.colHeadID.Width = 232;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(312, 16);
     this.label1.TabIndex = 1;
     this.label1.Text     = "select OPC DA 2.0 server:";
     //
     // SelServer
     //
     this.AcceptButton      = this.btnOK;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(516, 236);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.OpcDaSrvList,
         this.label1,
         this.btnOK
     });
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "SelServer";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "OPC Server";
     this.ResumeLayout(false);
 }
Exemple #15
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.lvApplies        = new System.Windows.Forms.ListView();
     this.columnHeader1    = new System.Windows.Forms.ColumnHeader();
     this.columnHeader2    = new System.Windows.Forms.ColumnHeader();
     this.columnHeader3    = new System.Windows.Forms.ColumnHeader();
     this.columnHeader4    = new System.Windows.Forms.ColumnHeader();
     this.ID               = new System.Windows.Forms.ColumnHeader();
     this.contextMenu1     = new System.Windows.Forms.ContextMenu();
     this.menuItem1        = new System.Windows.Forms.MenuItem();
     this.menuItem2        = new System.Windows.Forms.MenuItem();
     this.groupBox1        = new System.Windows.Forms.GroupBox();
     this.cmdTerm          = new System.Windows.Forms.ComboBox();
     this.txtChargeDetail  = new System.Windows.Forms.TextBox();
     this.label1           = new System.Windows.Forms.Label();
     this.cbPart           = new System.Windows.Forms.ComboBox();
     this.cbAim            = new System.Windows.Forms.ComboBox();
     this.label35          = new System.Windows.Forms.Label();
     this.label34          = new System.Windows.Forms.Label();
     this.button1          = new System.Windows.Forms.Button();
     this.contextMenu2     = new System.Windows.Forms.ContextMenu();
     this.menuItem3        = new System.Windows.Forms.MenuItem();
     this.menuItem4        = new System.Windows.Forms.MenuItem();
     this.contextMenu3     = new System.Windows.Forms.ContextMenu();
     this.menuItem5        = new System.Windows.Forms.MenuItem();
     this.menuItem6        = new System.Windows.Forms.MenuItem();
     this.btnOK            = new PinkieControls.ButtonXP();
     this.btnCancel        = new PinkieControls.ButtonXP();
     this.m_cmdDirctPrint  = new PinkieControls.ButtonXP();
     this.m_cmdPrintReview = new PinkieControls.ButtonXP();
     this.lsvChargeDetail  = new System.Windows.Forms.ListView();
     this.columnHeader6    = new System.Windows.Forms.ColumnHeader();
     this.columnHeader5    = new System.Windows.Forms.ColumnHeader();
     this.columnHeader7    = new System.Windows.Forms.ColumnHeader();
     this.columnHeader8    = new System.Windows.Forms.ColumnHeader();
     this.columnHeader9    = new System.Windows.Forms.ColumnHeader();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // lvApplies
     //
     this.lvApplies.CheckBoxes = true;
     this.lvApplies.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2,
         this.columnHeader3,
         this.columnHeader4,
         this.ID
     });
     this.lvApplies.FullRowSelect         = true;
     this.lvApplies.HideSelection         = false;
     this.lvApplies.Location              = new System.Drawing.Point(8, 8);
     this.lvApplies.MultiSelect           = false;
     this.lvApplies.Name                  = "lvApplies";
     this.lvApplies.Size                  = new System.Drawing.Size(632, 256);
     this.lvApplies.TabIndex              = 0;
     this.lvApplies.View                  = System.Windows.Forms.View.Details;
     this.lvApplies.Leave                += new System.EventHandler(this.lvApplies_Leave);
     this.lvApplies.SelectedIndexChanged += new System.EventHandler(this.lvApplies_SelectedIndexChanged);
     this.lvApplies.ItemCheck            += new System.Windows.Forms.ItemCheckEventHandler(this.lvApplies_ItemCheck);
     //
     // columnHeader1
     //
     this.columnHeader1.Text  = "检查类型";
     this.columnHeader1.Width = 120;
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "部位或组织";
     this.columnHeader2.Width = 100;
     //
     // columnHeader3
     //
     this.columnHeader3.Text  = "目的或要求";
     this.columnHeader3.Width = 100;
     //
     // columnHeader4
     //
     this.columnHeader4.Text  = "收费信息";
     this.columnHeader4.Width = 300;
     //
     // ID
     //
     this.ID.Text  = "ID";
     this.ID.Width = 0;
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem2
     });
     //
     // menuItem1
     //
     this.menuItem1.Index  = 0;
     this.menuItem1.Text   = "新增检查类型";
     this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // menuItem2
     //
     this.menuItem2.Index  = 1;
     this.menuItem2.Text   = "删除检查类型";
     this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.cmdTerm);
     this.groupBox1.Controls.Add(this.txtChargeDetail);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.cbPart);
     this.groupBox1.Controls.Add(this.cbAim);
     this.groupBox1.Controls.Add(this.label35);
     this.groupBox1.Controls.Add(this.label34);
     this.groupBox1.Controls.Add(this.button1);
     this.groupBox1.Location = new System.Drawing.Point(8, 272);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(632, 112);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     //
     // cmdTerm
     //
     this.cmdTerm.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmdTerm.Items.AddRange(new object[] {
         "编号",
         "项目名称",
         "拼音码",
         "五笔码",
         "英文名"
     });
     this.cmdTerm.Location = new System.Drawing.Point(104, 80);
     this.cmdTerm.Name     = "cmdTerm";
     this.cmdTerm.Size     = new System.Drawing.Size(80, 22);
     this.cmdTerm.TabIndex = 7;
     //
     // txtChargeDetail
     //
     this.txtChargeDetail.BackColor = System.Drawing.SystemColors.Window;
     this.txtChargeDetail.Location  = new System.Drawing.Point(192, 80);
     this.txtChargeDetail.Name      = "txtChargeDetail";
     this.txtChargeDetail.Size      = new System.Drawing.Size(400, 23);
     this.txtChargeDetail.TabIndex  = 6;
     this.txtChargeDetail.Text      = "";
     this.txtChargeDetail.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.txtChargeDetail_KeyDown);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(8, 80);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(92, 19);
     this.label1.TabIndex = 5;
     this.label1.Text     = "收费信息查询";
     //
     // cbPart
     //
     this.cbPart.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbPart.Location              = new System.Drawing.Point(168, 16);
     this.cbPart.Name                  = "cbPart";
     this.cbPart.Size                  = new System.Drawing.Size(456, 22);
     this.cbPart.TabIndex              = 0;
     this.cbPart.TextChanged          += new System.EventHandler(this.ComboChanged);
     this.cbPart.SelectedIndexChanged += new System.EventHandler(this.ComboChanged);
     //
     // cbAim
     //
     this.cbAim.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbAim.Location              = new System.Drawing.Point(168, 48);
     this.cbAim.Name                  = "cbAim";
     this.cbAim.Size                  = new System.Drawing.Size(456, 22);
     this.cbAim.TabIndex              = 1;
     this.cbAim.TextChanged          += new System.EventHandler(this.ComboChanged);
     this.cbAim.SelectedIndexChanged += new System.EventHandler(this.ComboChanged);
     //
     // label35
     //
     this.label35.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.label35.Location   = new System.Drawing.Point(7, 50);
     this.label35.Name       = "label35";
     this.label35.Size       = new System.Drawing.Size(177, 17);
     this.label35.TabIndex   = 4;
     this.label35.Text       = "申请检查目的或其它要求";
     this.label35.TextAlign  = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label34
     //
     this.label34.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.label34.Location   = new System.Drawing.Point(7, 18);
     this.label34.Name       = "label34";
     this.label34.Size       = new System.Drawing.Size(185, 17);
     this.label34.TabIndex   = 3;
     this.label34.Text       = "申请检查部位或送检组织";
     this.label34.TextAlign  = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(600, 80);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(24, 23);
     this.button1.TabIndex = 8;
     this.button1.Text     = "↑";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // contextMenu2
     //
     this.contextMenu2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem3,
         this.menuItem4
     });
     //
     // menuItem3
     //
     this.menuItem3.Index  = 0;
     this.menuItem3.Text   = "保存";
     this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
     //
     // menuItem4
     //
     this.menuItem4.Index  = 1;
     this.menuItem4.Text   = "删除";
     this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
     //
     // contextMenu3
     //
     this.contextMenu3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem5,
         this.menuItem6
     });
     //
     // menuItem5
     //
     this.menuItem5.Index  = 0;
     this.menuItem5.Text   = "保存";
     this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
     //
     // menuItem6
     //
     this.menuItem6.Index  = 1;
     this.menuItem6.Text   = "删除";
     this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click);
     //
     // btnOK
     //
     this.btnOK.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btnOK.DefaultScheme = true;
     this.btnOK.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.btnOK.Hint          = "";
     this.btnOK.Location      = new System.Drawing.Point(354, 392);
     this.btnOK.Name          = "btnOK";
     this.btnOK.Scheme        = PinkieControls.ButtonXP.Schemes.Blue;
     this.btnOK.Size          = new System.Drawing.Size(96, 32);
     this.btnOK.TabIndex      = 2;
     this.btnOK.Text          = "确定(&O)";
     this.btnOK.Click        += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btnCancel.DefaultScheme = true;
     this.btnCancel.DialogResult  = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Hint          = "";
     this.btnCancel.Location      = new System.Drawing.Point(519, 392);
     this.btnCancel.Name          = "btnCancel";
     this.btnCancel.Scheme        = PinkieControls.ButtonXP.Schemes.Blue;
     this.btnCancel.Size          = new System.Drawing.Size(96, 32);
     this.btnCancel.TabIndex      = 3;
     this.btnCancel.Text          = "取消(&C)";
     //
     // m_cmdDirctPrint
     //
     this.m_cmdDirctPrint.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.m_cmdDirctPrint.DefaultScheme = true;
     this.m_cmdDirctPrint.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.m_cmdDirctPrint.Hint          = "";
     this.m_cmdDirctPrint.Location      = new System.Drawing.Point(24, 392);
     this.m_cmdDirctPrint.Name          = "m_cmdDirctPrint";
     this.m_cmdDirctPrint.Scheme        = PinkieControls.ButtonXP.Schemes.Blue;
     this.m_cmdDirctPrint.Size          = new System.Drawing.Size(96, 32);
     this.m_cmdDirctPrint.TabIndex      = 5;
     this.m_cmdDirctPrint.Text          = "直接打印";
     this.m_cmdDirctPrint.Click        += new System.EventHandler(this.m_cmdDirctPrint_Click);
     //
     // m_cmdPrintReview
     //
     this.m_cmdPrintReview.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.m_cmdPrintReview.DefaultScheme = true;
     this.m_cmdPrintReview.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.m_cmdPrintReview.Hint          = "";
     this.m_cmdPrintReview.Location      = new System.Drawing.Point(189, 392);
     this.m_cmdPrintReview.Name          = "m_cmdPrintReview";
     this.m_cmdPrintReview.Scheme        = PinkieControls.ButtonXP.Schemes.Blue;
     this.m_cmdPrintReview.Size          = new System.Drawing.Size(96, 32);
     this.m_cmdPrintReview.TabIndex      = 6;
     this.m_cmdPrintReview.Text          = "打印预览";
     this.m_cmdPrintReview.Click        += new System.EventHandler(this.m_cmdPrintReview_Click);
     //
     // lsvChargeDetail
     //
     this.lsvChargeDetail.BackColor   = System.Drawing.Color.White;
     this.lsvChargeDetail.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lsvChargeDetail.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader6,
         this.columnHeader5,
         this.columnHeader7,
         this.columnHeader8,
         this.columnHeader9
     });
     this.lsvChargeDetail.Font          = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.lsvChargeDetail.ForeColor     = System.Drawing.Color.Black;
     this.lsvChargeDetail.FullRowSelect = true;
     this.lsvChargeDetail.GridLines     = true;
     this.lsvChargeDetail.Location      = new System.Drawing.Point(200, 192);
     this.lsvChargeDetail.Name          = "lsvChargeDetail";
     this.lsvChargeDetail.Size          = new System.Drawing.Size(432, 160);
     this.lsvChargeDetail.TabIndex      = 5611;
     this.lsvChargeDetail.View          = System.Windows.Forms.View.Details;
     this.lsvChargeDetail.Visible       = false;
     this.lsvChargeDetail.KeyDown      += new System.Windows.Forms.KeyEventHandler(this.lsvChargeDetail_KeyDown);
     this.lsvChargeDetail.DoubleClick  += new System.EventHandler(this.lsvChargeDetail_DoubleClick);
     this.lsvChargeDetail.Leave        += new System.EventHandler(this.lsvChargeDetail_Leave);
     //
     // columnHeader6
     //
     this.columnHeader6.Text  = "项目名称";
     this.columnHeader6.Width = 140;
     //
     // columnHeader5
     //
     this.columnHeader5.Text      = "规格";
     this.columnHeader5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.columnHeader5.Width     = 70;
     //
     // columnHeader7
     //
     this.columnHeader7.Text      = "数量";
     this.columnHeader7.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // columnHeader8
     //
     this.columnHeader8.Text      = "总价";
     this.columnHeader8.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // columnHeader9
     //
     this.columnHeader9.Text      = "自付比例";
     this.columnHeader9.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.columnHeader9.Width     = 80;
     //
     // frmSelectType
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(7, 16);
     this.ClientSize        = new System.Drawing.Size(650, 431);
     this.Controls.Add(this.lsvChargeDetail);
     this.Controls.Add(this.m_cmdDirctPrint);
     this.Controls.Add(this.m_cmdPrintReview);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.lvApplies);
     this.Font                = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
     this.FormBorderStyle     = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox         = false;
     this.MinimizeBox         = false;
     this.Name                = "frmSelectType";
     this.StartPosition       = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text                = "选择检查类型";
     this.Load               += new System.EventHandler(this.frmSelectType_Load);
     this.MaximumSizeChanged += new System.EventHandler(this.frmSelectType_MaximumSizeChanged);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #16
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LinguaLinksImportDlg));
     this.linkLabel2 = new System.Windows.Forms.LinkLabel();
     this.label1     = new System.Windows.Forms.Label();
     this.m_LinguaLinksXmlFileName = new System.Windows.Forms.TextBox();
     this.btn_LinguaLinksXmlBrowse = new System.Windows.Forms.Button();
     this.listViewMapping          = new System.Windows.Forms.ListView();
     this.columnHeader1            = new System.Windows.Forms.ColumnHeader();
     this.columnHeader2            = new System.Windows.Forms.ColumnHeader();
     this.columnHeader3            = new System.Windows.Forms.ColumnHeader();
     this.label2              = new System.Windows.Forms.Label();
     this.btnModifyMapping    = new System.Windows.Forms.Button();
     this.btnImport           = new System.Windows.Forms.Button();
     this.btn_Cancel          = new System.Windows.Forms.Button();
     this.lblFinishWOImport   = new System.Windows.Forms.Label();
     this.m_btnHelp           = new System.Windows.Forms.Button();
     this.lblMappingLanguages = new System.Windows.Forms.Label();
     this.label3              = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // linkLabel2
     //
     resources.ApplyResources(this.linkLabel2, "linkLabel2");
     this.linkLabel2.Name         = "linkLabel2";
     this.linkLabel2.TabStop      = true;
     this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     //
     // m_LinguaLinksXmlFileName
     //
     resources.ApplyResources(this.m_LinguaLinksXmlFileName, "m_LinguaLinksXmlFileName");
     this.m_LinguaLinksXmlFileName.Name   = "m_LinguaLinksXmlFileName";
     this.m_LinguaLinksXmlFileName.Leave += new System.EventHandler(this.m_LinguaLinksXmlFileName_Leave);
     //
     // btn_LinguaLinksXmlBrowse
     //
     resources.ApplyResources(this.btn_LinguaLinksXmlBrowse, "btn_LinguaLinksXmlBrowse");
     this.btn_LinguaLinksXmlBrowse.Name   = "btn_LinguaLinksXmlBrowse";
     this.btn_LinguaLinksXmlBrowse.Click += new System.EventHandler(this.btn_LinguaLinksXmlBrowse_Click);
     //
     // listViewMapping
     //
     this.listViewMapping.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2,
         this.columnHeader3
     });
     this.listViewMapping.FullRowSelect = true;
     this.listViewMapping.HideSelection = false;
     resources.ApplyResources(this.listViewMapping, "listViewMapping");
     this.listViewMapping.MultiSelect = false;
     this.listViewMapping.Name        = "listViewMapping";
     this.listViewMapping.Sorting     = System.Windows.Forms.SortOrder.Ascending;
     this.listViewMapping.UseCompatibleStateImageBehavior = false;
     this.listViewMapping.View = System.Windows.Forms.View.Details;
     this.listViewMapping.SelectedIndexChanged += new System.EventHandler(this.listViewMapping_SelectedIndexChanged);
     this.listViewMapping.DoubleClick          += new System.EventHandler(this.listViewMapping_DoubleClick);
     //
     // columnHeader1
     //
     resources.ApplyResources(this.columnHeader1, "columnHeader1");
     //
     // columnHeader2
     //
     resources.ApplyResources(this.columnHeader2, "columnHeader2");
     //
     // columnHeader3
     //
     resources.ApplyResources(this.columnHeader3, "columnHeader3");
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name   = "label2";
     this.label2.Click += new System.EventHandler(this.label2_Click);
     //
     // btnModifyMapping
     //
     resources.ApplyResources(this.btnModifyMapping, "btnModifyMapping");
     this.btnModifyMapping.Name   = "btnModifyMapping";
     this.btnModifyMapping.Click += new System.EventHandler(this.btnModifyMapping_Click);
     //
     // btnImport
     //
     resources.ApplyResources(this.btnImport, "btnImport");
     this.btnImport.Name   = "btnImport";
     this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
     //
     // btn_Cancel
     //
     this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     resources.ApplyResources(this.btn_Cancel, "btn_Cancel");
     this.btn_Cancel.Name = "btn_Cancel";
     //
     // lblFinishWOImport
     //
     this.lblFinishWOImport.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     resources.ApplyResources(this.lblFinishWOImport, "lblFinishWOImport");
     this.lblFinishWOImport.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.lblFinishWOImport.Name      = "lblFinishWOImport";
     //
     // m_btnHelp
     //
     resources.ApplyResources(this.m_btnHelp, "m_btnHelp");
     this.m_btnHelp.Name   = "m_btnHelp";
     this.m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click);
     //
     // lblMappingLanguages
     //
     resources.ApplyResources(this.lblMappingLanguages, "lblMappingLanguages");
     this.lblMappingLanguages.Name = "lblMappingLanguages";
     //
     // label3
     //
     resources.ApplyResources(this.label3, "label3");
     this.label3.Name = "label3";
     //
     // LinguaLinksImportDlg
     //
     this.AcceptButton = this.btnImport;
     resources.ApplyResources(this, "$this");
     this.CancelButton = this.btn_Cancel;
     this.Controls.Add(this.label3);
     this.Controls.Add(this.lblMappingLanguages);
     this.Controls.Add(this.m_btnHelp);
     this.Controls.Add(this.lblFinishWOImport);
     this.Controls.Add(this.btn_Cancel);
     this.Controls.Add(this.btnImport);
     this.Controls.Add(this.btnModifyMapping);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.listViewMapping);
     this.Controls.Add(this.btn_LinguaLinksXmlBrowse);
     this.Controls.Add(this.m_LinguaLinksXmlFileName);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.linkLabel2);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.KeyPreview      = true;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "LinguaLinksImportDlg";
     this.Load           += new System.EventHandler(this.LinguaLinksImportDlg_Load);
     this.KeyUp          += new System.Windows.Forms.KeyEventHandler(this.LinguaLinksImportDlg_KeyUp);
     this.KeyDown        += new System.Windows.Forms.KeyEventHandler(this.LinguaLinksImportDlg_KeyDown);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NewItemDialog));
     this.btnOK          = new System.Windows.Forms.Button();
     this.btnCancel      = new System.Windows.Forms.Button();
     this.imageList      = new System.Windows.Forms.ImageList(this.components);
     this.listView1      = new System.Windows.Forms.ListView();
     this.lblName        = new System.Windows.Forms.Label();
     this.txtName        = new System.Windows.Forms.TextBox();
     this.lblPath        = new System.Windows.Forms.Label();
     this.txtLocation    = new System.Windows.Forms.TextBox();
     this.lblDescription = new System.Windows.Forms.Label();
     this.btnBrowse      = new System.Windows.Forms.Button();
     this.lblSplitter    = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // btnOK
     //
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     resources.ApplyResources(this.btnOK, "btnOK");
     this.btnOK.Name = "btnOK";
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     resources.ApplyResources(this.btnCancel, "btnCancel");
     this.btnCancel.Name = "btnCancel";
     //
     // imageList
     //
     this.imageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList.Images.SetKeyName(0, "shell32.164.ico");
     //
     // listView1
     //
     this.listView1.HideSelection = false;
     this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
         ((System.Windows.Forms.ListViewItem)(resources.GetObject("listView1.Items"))),
         ((System.Windows.Forms.ListViewItem)(resources.GetObject("listView1.Items1"))),
         ((System.Windows.Forms.ListViewItem)(resources.GetObject("listView1.Items2")))
     });
     this.listView1.LargeImageList = this.imageList;
     resources.ApplyResources(this.listView1, "listView1");
     this.listView1.Name = "listView1";
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.SelectedIndexChanged           += new System.EventHandler(this.listView1_SelectedIndexChanged);
     //
     // lblName
     //
     resources.ApplyResources(this.lblName, "lblName");
     this.lblName.Name = "lblName";
     //
     // txtName
     //
     resources.ApplyResources(this.txtName, "txtName");
     this.txtName.Name = "txtName";
     //
     // lblPath
     //
     resources.ApplyResources(this.lblPath, "lblPath");
     this.lblPath.Name = "lblPath";
     //
     // txtLocation
     //
     resources.ApplyResources(this.txtLocation, "txtLocation");
     this.txtLocation.Name = "txtLocation";
     //
     // lblDescription
     //
     this.lblDescription.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     resources.ApplyResources(this.lblDescription, "lblDescription");
     this.lblDescription.Name = "lblDescription";
     //
     // btnBrowse
     //
     resources.ApplyResources(this.btnBrowse, "btnBrowse");
     this.btnBrowse.Name   = "btnBrowse";
     this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
     //
     // lblSplitter
     //
     this.lblSplitter.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     resources.ApplyResources(this.lblSplitter, "lblSplitter");
     this.lblSplitter.Name = "lblSplitter";
     //
     // NewItemDialog
     //
     this.AcceptButton = this.btnOK;
     resources.ApplyResources(this, "$this");
     this.CancelButton = this.btnCancel;
     this.Controls.Add(this.lblSplitter);
     this.Controls.Add(this.btnBrowse);
     this.Controls.Add(this.lblDescription);
     this.Controls.Add(this.txtLocation);
     this.Controls.Add(this.lblPath);
     this.Controls.Add(this.txtName);
     this.Controls.Add(this.lblName);
     this.Controls.Add(this.listView1);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.HelpButton      = true;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "NewItemDialog";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemple #18
0
        /// <summary>
        /// Рекурсивно перевести элементы управления Windows-формы
        /// </summary>
        private static void TranslateWinControls(ICollection controls, WinForms.ToolTip toolTip,
                                                 Dictionary <string, ControlInfo> controlInfoDict)
        {
            if (controls == null)
            {
                return;
            }

            foreach (object elem in controls)
            {
                ControlInfo controlInfo;

                if (elem is WinForms.Control)
                {
                    // обработка обычного элемента управления
                    WinForms.Control control = (WinForms.Control)elem;
                    if (!string.IsNullOrEmpty(control.Name) /*например, поле ввода и кнопки NumericUpDown*/ &&
                        controlInfoDict.TryGetValue(control.Name, out controlInfo))
                    {
                        if (controlInfo.Text != null)
                        {
                            control.Text = controlInfo.Text;
                        }

                        if (controlInfo.ToolTip != null && toolTip != null)
                        {
                            toolTip.SetToolTip(control, controlInfo.ToolTip);
                        }

                        if (controlInfo.Items != null)
                        {
                            if (elem is WinForms.ComboBox)
                            {
                                WinForms.ComboBox comboBox = (WinForms.ComboBox)elem;
                                int cnt = Math.Min(comboBox.Items.Count, controlInfo.Items.Count);
                                for (int i = 0; i < cnt; i++)
                                {
                                    string itemText = controlInfo.Items[i];
                                    if (itemText != null)
                                    {
                                        comboBox.Items[i] = itemText;
                                    }
                                }
                            }
                            else if (elem is WinForms.ListView)
                            {
                                WinForms.ListView listView = (WinForms.ListView)elem;
                                int cnt = Math.Min(listView.Items.Count, controlInfo.Items.Count);
                                for (int i = 0; i < cnt; i++)
                                {
                                    string itemText = controlInfo.Items[i];
                                    if (itemText != null)
                                    {
                                        listView.Items[i].Text = itemText;
                                    }
                                }
                            }
                        }
                    }

                    // запуск обработки вложенных элементов
                    if (elem is WinForms.MenuStrip)
                    {
                        // запуск обработки элементов меню
                        WinForms.MenuStrip menuStrip = (WinForms.MenuStrip)elem;
                        TranslateWinControls(menuStrip.Items, toolTip, controlInfoDict);
                    }
                    else if (elem is WinForms.ToolStrip)
                    {
                        // запуск обработки элементов панели инструментов
                        WinForms.ToolStrip toolStrip = (WinForms.ToolStrip)elem;
                        TranslateWinControls(toolStrip.Items, toolTip, controlInfoDict);
                    }
                    else if (elem is WinForms.DataGridView)
                    {
                        // запуск обработки столбцов таблицы
                        WinForms.DataGridView dataGridView = (WinForms.DataGridView)elem;
                        TranslateWinControls(dataGridView.Columns, toolTip, controlInfoDict);
                    }
                    else if (elem is WinForms.ListView)
                    {
                        // запуск обработки столбцов и групп списка
                        WinForms.ListView listView = (WinForms.ListView)elem;
                        TranslateWinControls(listView.Columns, toolTip, controlInfoDict);
                        TranslateWinControls(listView.Groups, toolTip, controlInfoDict);
                    }

                    // запуск обработки дочерних элементов
                    if (control.HasChildren)
                    {
                        TranslateWinControls(control.Controls, toolTip, controlInfoDict);
                    }
                }
                else if (elem is WinForms.ToolStripItem)
                {
                    // обработка элемента меню или элемента панели инструментов
                    WinForms.ToolStripItem item = (WinForms.ToolStripItem)elem;
                    if (controlInfoDict.TryGetValue(item.Name, out controlInfo))
                    {
                        if (controlInfo.Text != null)
                        {
                            item.Text = controlInfo.Text;
                        }
                        if (controlInfo.ToolTip != null)
                        {
                            item.ToolTipText = controlInfo.ToolTip;
                        }
                    }

                    if (elem is WinForms.ToolStripDropDownItem)
                    {
                        // запуск обработки элементов подменю
                        WinForms.ToolStripDropDownItem dropDownItem = (WinForms.ToolStripDropDownItem)elem;
                        if (dropDownItem.HasDropDownItems)
                        {
                            TranslateWinControls(dropDownItem.DropDownItems, toolTip, controlInfoDict);
                        }
                    }
                }
                else if (elem is WinForms.DataGridViewColumn)
                {
                    // обработка столбца таблицы
                    WinForms.DataGridViewColumn column = (WinForms.DataGridViewColumn)elem;
                    if (controlInfoDict.TryGetValue(column.Name, out controlInfo) && controlInfo.Text != null)
                    {
                        column.HeaderText = controlInfo.Text;
                    }
                }
                else if (elem is WinForms.ColumnHeader)
                {
                    // обработка столбца списка
                    WinForms.ColumnHeader columnHeader = (WinForms.ColumnHeader)elem;
                    if (controlInfoDict.TryGetValue(columnHeader.Name, out controlInfo) && controlInfo.Text != null)
                    {
                        columnHeader.Text = controlInfo.Text;
                    }
                }
                else if (elem is WinForms.ListViewGroup)
                {
                    // обработка группы списка
                    WinForms.ListViewGroup listViewGroup = (WinForms.ListViewGroup)elem;
                    if (controlInfoDict.TryGetValue(listViewGroup.Name, out controlInfo) && controlInfo.Text != null)
                    {
                        listViewGroup.Header = controlInfo.Text;
                    }
                }
            }
        }
Exemple #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.deviceListVw = new System.Windows.Forms.ListView();
     this.nameColHd    = new System.Windows.Forms.ColumnHeader();
     this.okButton     = new System.Windows.Forms.Button();
     this.cancelButton = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // deviceListVw
     //
     this.deviceListVw.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                  | System.Windows.Forms.AnchorStyles.Left)
                                 | System.Windows.Forms.AnchorStyles.Right);
     this.deviceListVw.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.nameColHd
     });
     this.deviceListVw.FullRowSelect = true;
     this.deviceListVw.GridLines     = true;
     this.deviceListVw.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.deviceListVw.HideSelection = false;
     this.deviceListVw.Location      = new System.Drawing.Point(8, 8);
     this.deviceListVw.MultiSelect   = false;
     this.deviceListVw.Name          = "deviceListVw";
     this.deviceListVw.Size          = new System.Drawing.Size(344, 112);
     this.deviceListVw.TabIndex      = 0;
     this.deviceListVw.View          = System.Windows.Forms.View.Details;
     this.deviceListVw.DoubleClick  += new System.EventHandler(this.deviceListVw_DoubleClick);
     //
     // nameColHd
     //
     this.nameColHd.Text  = "Name";
     this.nameColHd.Width = 340;
     //
     // okButton
     //
     this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                             | System.Windows.Forms.AnchorStyles.Right);
     this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.okButton.Location     = new System.Drawing.Point(108, 130);
     this.okButton.Name         = "okButton";
     this.okButton.Size         = new System.Drawing.Size(62, 24);
     this.okButton.TabIndex     = 1;
     this.okButton.Text         = "OK";
     this.okButton.Click       += new System.EventHandler(this.okButton_Click);
     //
     // cancelButton
     //
     this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                 | System.Windows.Forms.AnchorStyles.Right);
     this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Location     = new System.Drawing.Point(188, 130);
     this.cancelButton.Name         = "cancelButton";
     this.cancelButton.Size         = new System.Drawing.Size(62, 24);
     this.cancelButton.TabIndex     = 1;
     this.cancelButton.Text         = "Cancel";
     this.cancelButton.Click       += new System.EventHandler(this.cancelButton_Click);
     //
     // DeviceSelector
     //
     this.AcceptButton      = this.okButton;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.cancelButton;
     this.ClientSize        = new System.Drawing.Size(358, 159);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.okButton,
         this.deviceListVw,
         this.cancelButton
     });
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "DeviceSelector";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "Select video capture device";
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.listNewChoices = new System.Windows.Forms.ListView();
     this.btnOK          = new Oranikle.Studio.Controls.StyledButton();
     this.btnCancel      = new Oranikle.Studio.Controls.StyledButton();
     this.panel1         = new System.Windows.Forms.Panel();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // listNewChoices
     //
     this.listNewChoices.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.listNewChoices.HideSelection = false;
     this.listNewChoices.Location      = new System.Drawing.Point(0, 0);
     this.listNewChoices.MultiSelect   = false;
     this.listNewChoices.Name          = "listNewChoices";
     this.listNewChoices.Size          = new System.Drawing.Size(542, 403);
     this.listNewChoices.TabIndex      = 0;
     this.listNewChoices.UseCompatibleStateImageBehavior = false;
     this.listNewChoices.ItemActivate         += new System.EventHandler(this.listNewChoices_ItemActivate);
     this.listNewChoices.SelectedIndexChanged += new System.EventHandler(this.listNewChoices_SelectedIndexChanged);
     //
     // btnOK
     //
     this.btnOK.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOK.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(245)))));
     this.btnOK.BackColor2              = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(225)))), ((int)(((byte)(225)))));
     this.btnOK.BackFillMode            = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal;
     this.btnOK.BorderColor             = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
     this.btnOK.Enabled                 = false;
     this.btnOK.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btnOK.Font                    = new System.Drawing.Font("Arial", 9F);
     this.btnOK.ForeColor               = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90)))));
     this.btnOK.ImageAlign              = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnOK.Location                = new System.Drawing.Point(374, 4);
     this.btnOK.Name                    = "btnOK";
     this.btnOK.OverriddenSize          = null;
     this.btnOK.Size                    = new System.Drawing.Size(75, 21);
     this.btnOK.TabIndex                = 1;
     this.btnOK.Text                    = "OK";
     this.btnOK.UseVisualStyleBackColor = true;
     this.btnOK.Click                  += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(245)))));
     this.btnCancel.BackColor2              = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(225)))), ((int)(((byte)(225)))));
     this.btnCancel.BackFillMode            = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal;
     this.btnCancel.BorderColor             = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
     this.btnCancel.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btnCancel.Font                    = new System.Drawing.Font("Arial", 9F);
     this.btnCancel.ForeColor               = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90)))));
     this.btnCancel.ImageAlign              = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnCancel.Location                = new System.Drawing.Point(462, 4);
     this.btnCancel.Name                    = "btnCancel";
     this.btnCancel.OverriddenSize          = null;
     this.btnCancel.Size                    = new System.Drawing.Size(75, 21);
     this.btnCancel.TabIndex                = 2;
     this.btnCancel.Text                    = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.btnOK);
     this.panel1.Controls.Add(this.btnCancel);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(0, 371);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(542, 32);
     this.panel1.TabIndex = 3;
     //
     // DialogNew
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(241)))), ((int)(((byte)(249)))));
     this.ClientSize        = new System.Drawing.Size(542, 403);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.listNewChoices);
     this.Name = "DialogNew";
     this.Text = "New";
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #21
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CreateTestWindow));
     this.groupBox1            = new System.Windows.Forms.GroupBox();
     this.functionNameComboBox = new System.Windows.Forms.ComboBox();
     this.functionGroupLabel   = new System.Windows.Forms.Label();
     this.modifiersLabel       = new System.Windows.Forms.Label();
     this.returnTypeLabel      = new System.Windows.Forms.Label();
     this.label4             = new System.Windows.Forms.Label();
     this.label3             = new System.Windows.Forms.Label();
     this.label2             = new System.Windows.Forms.Label();
     this.label1             = new System.Windows.Forms.Label();
     this.groupBox2          = new System.Windows.Forms.GroupBox();
     this.label8             = new System.Windows.Forms.Label();
     this.paramListView      = new System.Windows.Forms.ListView();
     this.nameHeader         = new System.Windows.Forms.ColumnHeader();
     this.typeHeader         = new System.Windows.Forms.ColumnHeader();
     this.valueHeader        = new System.Windows.Forms.ColumnHeader();
     this.cmbBox             = new System.Windows.Forms.ComboBox();
     this.label5             = new System.Windows.Forms.Label();
     this.groupBox3          = new System.Windows.Forms.GroupBox();
     this.errorCodeComboBox  = new System.Windows.Forms.ComboBox();
     this.returnValueTextBox = new System.Windows.Forms.TextBox();
     this.label7             = new System.Windows.Forms.Label();
     this.label6             = new System.Windows.Forms.Label();
     this.okButton           = new System.Windows.Forms.Button();
     this.cancelButton       = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.paramListView.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.functionNameComboBox,
         this.functionGroupLabel,
         this.modifiersLabel,
         this.returnTypeLabel,
         this.label4,
         this.label3,
         this.label2,
         this.label1
     });
     this.groupBox1.Location = new System.Drawing.Point(8, 8);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(472, 80);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Function to Create A Test For:";
     //
     // functionNameComboBox
     //
     this.functionNameComboBox.Location              = new System.Drawing.Point(88, 16);
     this.functionNameComboBox.Name                  = "functionNameComboBox";
     this.functionNameComboBox.Size                  = new System.Drawing.Size(136, 21);
     this.functionNameComboBox.TabIndex              = 8;
     this.functionNameComboBox.SelectedValueChanged += new System.EventHandler(this.functionNameComboBox_SelectedValueChanged);
     //
     // functionGroupLabel
     //
     this.functionGroupLabel.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.functionGroupLabel.Location = new System.Drawing.Point(320, 48);
     this.functionGroupLabel.Name     = "functionGroupLabel";
     this.functionGroupLabel.Size     = new System.Drawing.Size(136, 16);
     this.functionGroupLabel.TabIndex = 7;
     //
     // modifiersLabel
     //
     this.modifiersLabel.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.modifiersLabel.Location = new System.Drawing.Point(320, 24);
     this.modifiersLabel.Name     = "modifiersLabel";
     this.modifiersLabel.Size     = new System.Drawing.Size(136, 16);
     this.modifiersLabel.TabIndex = 6;
     //
     // returnTypeLabel
     //
     this.returnTypeLabel.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.returnTypeLabel.Location = new System.Drawing.Point(88, 48);
     this.returnTypeLabel.Name     = "returnTypeLabel";
     this.returnTypeLabel.Size     = new System.Drawing.Size(136, 16);
     this.returnTypeLabel.TabIndex = 5;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(256, 48);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(48, 16);
     this.label4.TabIndex = 3;
     this.label4.Text     = "Group:";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(256, 24);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(56, 16);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Modifiers:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 48);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(72, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "Return Type:";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 24);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(64, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Name:";
     //
     // groupBox2
     //
     this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label8,
         this.paramListView,
         this.label5
     });
     this.groupBox2.Location = new System.Drawing.Point(8, 96);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(472, 224);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Function Parameters";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(148, 32);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(176, 16);
     this.label8.TabIndex = 2;
     this.label8.Text     = "(Double Click the Value to Edit It)";
     //
     // paramListView
     //
     this.paramListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.nameHeader,
         this.typeHeader,
         this.valueHeader
     });
     this.paramListView.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.cmbBox
     });
     this.paramListView.FullRowSelect = true;
     this.paramListView.Location      = new System.Drawing.Point(16, 56);
     this.paramListView.Name          = "paramListView";
     this.paramListView.Size          = new System.Drawing.Size(440, 152);
     this.paramListView.TabIndex      = 1;
     this.paramListView.View          = System.Windows.Forms.View.Details;
     this.paramListView.MouseDown    += new System.Windows.Forms.MouseEventHandler(this.paramListView_MouseDown);
     this.paramListView.DoubleClick  += new System.EventHandler(this.paramListView_DoubleClick);
     //
     // nameHeader
     //
     this.nameHeader.Text  = "Name";
     this.nameHeader.Width = 150;
     //
     // typeHeader
     //
     this.typeHeader.Text  = "Type";
     this.typeHeader.Width = 100;
     //
     // valueHeader
     //
     this.valueHeader.Text  = "Value";
     this.valueHeader.Width = 186;
     //
     // cmbBox
     //
     this.cmbBox.Name                  = "cmbBox";
     this.cmbBox.Size                  = new System.Drawing.Size(0, 21);
     this.cmbBox.TabIndex              = 0;
     this.cmbBox.KeyPress             += new System.Windows.Forms.KeyPressEventHandler(this.CmbKeyPress);
     this.cmbBox.SelectedIndexChanged += new System.EventHandler(this.CmbSelected);
     this.cmbBox.LostFocus            += new System.EventHandler(this.CmbFocusOver);
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(52, 16);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(368, 16);
     this.label5.TabIndex = 0;
     this.label5.Text     = "The test will be executed when the parameters match the values below:";
     //
     // groupBox3
     //
     this.groupBox3.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.errorCodeComboBox,
         this.returnValueTextBox,
         this.label7,
         this.label6
     });
     this.groupBox3.Location = new System.Drawing.Point(8, 328);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(472, 88);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Specify the following return value and error code for the test:";
     //
     // errorCodeComboBox
     //
     this.errorCodeComboBox.Location = new System.Drawing.Point(288, 48);
     this.errorCodeComboBox.Name     = "errorCodeComboBox";
     this.errorCodeComboBox.Size     = new System.Drawing.Size(168, 21);
     this.errorCodeComboBox.TabIndex = 3;
     //
     // returnValueTextBox
     //
     this.returnValueTextBox.Location = new System.Drawing.Point(16, 48);
     this.returnValueTextBox.Name     = "returnValueTextBox";
     this.returnValueTextBox.Size     = new System.Drawing.Size(232, 20);
     this.returnValueTextBox.TabIndex = 2;
     this.returnValueTextBox.Text     = "";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(288, 24);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(100, 16);
     this.label7.TabIndex = 1;
     this.label7.Text     = "Error Code:";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 24);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(88, 16);
     this.label6.TabIndex = 0;
     this.label6.Text     = "Return Value:";
     //
     // okButton
     //
     this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.okButton.Location     = new System.Drawing.Point(160, 432);
     this.okButton.Name         = "okButton";
     this.okButton.TabIndex     = 3;
     this.okButton.Text         = "OK";
     //
     // cancelButton
     //
     this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Location     = new System.Drawing.Point(256, 432);
     this.cancelButton.Name         = "cancelButton";
     this.cancelButton.TabIndex     = 4;
     this.cancelButton.Text         = "Cancel";
     //
     // CreateTestWindow
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(490, 464);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.cancelButton,
         this.okButton,
         this.groupBox3,
         this.groupBox2,
         this.groupBox1
     });
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "CreateTestWindow";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Create a Test";
     this.Load           += new System.EventHandler(this.CreateTestWindow_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.paramListView.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.mainMenu1      = new System.Windows.Forms.MainMenu();
     this.menuItem1      = new System.Windows.Forms.MenuItem();
     this.menuFileExit   = new System.Windows.Forms.MenuItem();
     this.menuItem2      = new System.Windows.Forms.MenuItem();
     this.menuViewIssues = new System.Windows.Forms.MenuItem();
     this.menuViewUsers  = new System.Windows.Forms.MenuItem();
     this.menuAbout      = new System.Windows.Forms.MenuItem();
     this.lstViewer      = new System.Windows.Forms.ListView();
     this.columnHeader1  = new System.Windows.Forms.ColumnHeader();
     this.columnHeader2  = new System.Windows.Forms.ColumnHeader();
     this.columnHeader3  = new System.Windows.Forms.ColumnHeader();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.Add(this.menuItem1);
     this.mainMenu1.MenuItems.Add(this.menuItem2);
     this.mainMenu1.MenuItems.Add(this.menuAbout);
     //
     // menuItem1
     //
     this.menuItem1.MenuItems.Add(this.menuFileExit);
     this.menuItem1.Text = "File";
     //
     // menuFileExit
     //
     this.menuFileExit.Text   = "Exit";
     this.menuFileExit.Click += new System.EventHandler(this.menuFileExit_Click);
     //
     // menuItem2
     //
     this.menuItem2.MenuItems.Add(this.menuViewIssues);
     this.menuItem2.MenuItems.Add(this.menuViewUsers);
     this.menuItem2.Text = "View";
     //
     // menuViewIssues
     //
     this.menuViewIssues.Text   = "Issues";
     this.menuViewIssues.Click += new System.EventHandler(this.menuViewIssues_Click);
     //
     // menuViewUsers
     //
     this.menuViewUsers.Text = "Users";
     //
     // menuAbout
     //
     this.menuAbout.Text   = "About...";
     this.menuAbout.Click += new System.EventHandler(this.menuAbout_Click);
     //
     // lstViewer
     //
     this.lstViewer.Columns.Add(this.columnHeader1);
     this.lstViewer.Columns.Add(this.columnHeader2);
     this.lstViewer.Columns.Add(this.columnHeader3);
     this.lstViewer.Size = new System.Drawing.Size(240, 272);
     this.lstViewer.View = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text  = "ID";
     this.columnHeader1.Width = 60;
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "Priority";
     this.columnHeader2.Width = 60;
     //
     // columnHeader3
     //
     this.columnHeader3.Text  = "Summary";
     this.columnHeader3.Width = 117;
     //
     // FormApplication
     //
     this.Controls.Add(this.lstViewer);
     this.Menu = this.mainMenu1;
     this.Text = "IssueTracker";
 }
Exemple #23
0
 public QuestListViewController(SHXmlCore xmlCore, SHXmlDataObject xmlDataObject, ArrayList arrayList,
                                System.Windows.Forms.ListView listView, System.Windows.Forms.ComboBox cbFilter)
     : base(xmlCore, xmlDataObject, arrayList, listView, cbFilter)
 {
 }
Exemple #24
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.htmluiControl1 = new Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl();
     this.panel1         = new System.Windows.Forms.Panel();
     this.textBox1       = new Syncfusion.Windows.Forms.Tools.TextBoxExt();
     this.comboBox1      = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv();
     this.label2         = new System.Windows.Forms.Label();
     this.label1         = new System.Windows.Forms.Label();
     this.button2        = new Syncfusion.Windows.Forms.ButtonAdv();
     this.button1        = new Syncfusion.Windows.Forms.ButtonAdv();
     this.listView1      = new System.Windows.Forms.ListView();
     this.columnHeader1  = new System.Windows.Forms.ColumnHeader();
     this.columnHeader2  = new System.Windows.Forms.ColumnHeader();
     this.richTextBox1   = new System.Windows.Forms.RichTextBox();
     this.panel2         = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.htmluiControl1)).BeginInit();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.textBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.comboBox1)).BeginInit();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // htmluiControl1
     //
     this.htmluiControl1.AutoScroll                    = true;
     this.htmluiControl1.AutoScrollMinSize             = new System.Drawing.Size(352, 370);
     this.htmluiControl1.BackColor                     = System.Drawing.Color.White;
     this.htmluiControl1.DefaultFormat.BackgroundColor = System.Drawing.SystemColors.Control;
     this.htmluiControl1.DefaultFormat.ForeColor       = System.Drawing.SystemColors.ControlText;
     this.htmluiControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.htmluiControl1.Location = new System.Drawing.Point(0, 0);
     this.htmluiControl1.Name     = "htmluiControl1";
     this.htmluiControl1.Size     = new System.Drawing.Size(369, 385);
     this.htmluiControl1.TabIndex = 4;
     this.htmluiControl1.Text     = resources.GetString("htmluiControl1.Text");
     //
     // panel1
     //
     this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.panel1.BackColor   = System.Drawing.Color.White;
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.panel1.Controls.Add(this.textBox1);
     this.panel1.Controls.Add(this.comboBox1);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.button2);
     this.panel1.Controls.Add(this.button1);
     this.panel1.Controls.Add(this.listView1);
     this.panel1.Location = new System.Drawing.Point(387, 10);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(269, 387);
     this.panel1.TabIndex = 3;
     //
     // textBox1
     //
     this.textBox1.BackColor   = System.Drawing.SystemColors.ButtonHighlight;
     this.textBox1.BorderColor = System.Drawing.Color.Gray;
     this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.textBox1.Cursor      = System.Windows.Forms.Cursors.IBeam;
     this.textBox1.Location    = new System.Drawing.Point(8, 184);
     this.textBox1.Metrocolor  = System.Drawing.Color.Gray;
     this.textBox1.Name        = "textBox1";
     this.textBox1.ReadOnly    = false;
     this.textBox1.Size        = new System.Drawing.Size(200, 20);
     this.textBox1.Style       = Syncfusion.Windows.Forms.Tools.TextBoxExt.theme.Metro;
     this.textBox1.TabIndex    = 24;
     this.textBox1.Text        = "System.Windows.Forms";
     //
     // comboBox1
     //
     this.comboBox1.BackColor     = System.Drawing.Color.White;
     this.comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
     this.comboBox1.Items.AddRange(new object[] {
         "HScrollBar",
         "CheckBox",
         "DataGrid",
         "TabControl",
         "ListBox",
         "RadioButton"
     });
     this.comboBox1.ItemsImageIndexes.Add(new Syncfusion.Windows.Forms.Tools.ComboBoxAdv.ImageIndexItem(this.comboBox1, "HScrollBar"));
     this.comboBox1.ItemsImageIndexes.Add(new Syncfusion.Windows.Forms.Tools.ComboBoxAdv.ImageIndexItem(this.comboBox1, "CheckBox"));
     this.comboBox1.ItemsImageIndexes.Add(new Syncfusion.Windows.Forms.Tools.ComboBoxAdv.ImageIndexItem(this.comboBox1, "DataGrid"));
     this.comboBox1.ItemsImageIndexes.Add(new Syncfusion.Windows.Forms.Tools.ComboBoxAdv.ImageIndexItem(this.comboBox1, "TabControl"));
     this.comboBox1.ItemsImageIndexes.Add(new Syncfusion.Windows.Forms.Tools.ComboBoxAdv.ImageIndexItem(this.comboBox1, "ListBox"));
     this.comboBox1.ItemsImageIndexes.Add(new Syncfusion.Windows.Forms.Tools.ComboBoxAdv.ImageIndexItem(this.comboBox1, "RadioButton"));
     this.comboBox1.Location = new System.Drawing.Point(8, 232);
     this.comboBox1.Name     = "comboBox1";
     this.comboBox1.Size     = new System.Drawing.Size(200, 21);
     this.comboBox1.Style    = Syncfusion.Windows.Forms.VisualStyle.Metro;
     this.comboBox1.TabIndex = 23;
     this.comboBox1.Text     = "Button";
     //
     // label2
     //
     this.label2.BackColor = System.Drawing.Color.White;
     this.label2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.label2.Font      = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor = System.Drawing.Color.Black;
     this.label2.Location  = new System.Drawing.Point(8, 160);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(200, 16);
     this.label2.TabIndex  = 21;
     this.label2.Text      = "Assembly Name";
     //
     // label1
     //
     this.label1.BackColor = System.Drawing.Color.White;
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Font      = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.Black;
     this.label1.Location  = new System.Drawing.Point(8, 208);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(200, 16);
     this.label1.TabIndex  = 20;
     this.label1.Text      = "Class Name";
     //
     // button2
     //
     this.button2.Appearance              = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.button2.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.button2.Enabled                 = false;
     this.button2.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.button2.Font                    = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button2.ForeColor               = System.Drawing.Color.White;
     this.button2.Location                = new System.Drawing.Point(56, 128);
     this.button2.Name                    = "button2";
     this.button2.Size                    = new System.Drawing.Size(96, 24);
     this.button2.TabIndex                = 18;
     this.button2.Text                    = "Delete";
     this.button2.UseVisualStyle          = true;
     this.button2.UseVisualStyleBackColor = false;
     this.button2.Click                  += new System.EventHandler(this.button2_Click);
     //
     // button1
     //
     this.button1.Appearance              = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.button1.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.button1.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.button1.Font                    = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button1.ForeColor               = System.Drawing.Color.White;
     this.button1.Location                = new System.Drawing.Point(64, 264);
     this.button1.Name                    = "button1";
     this.button1.Size                    = new System.Drawing.Size(104, 24);
     this.button1.TabIndex                = 17;
     this.button1.Text                    = "Add";
     this.button1.UseVisualStyle          = true;
     this.button1.UseVisualStyleBackColor = false;
     this.button1.Click                  += new System.EventHandler(this.button1_Click);
     //
     // listView1
     //
     this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.listView1.BackColor = System.Drawing.Color.White;
     this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2
     });
     this.listView1.Font          = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.listView1.FullRowSelect = true;
     this.listView1.Location      = new System.Drawing.Point(7, 8);
     this.listView1.Name          = "listView1";
     this.listView1.Size          = new System.Drawing.Size(254, 113);
     this.listView1.TabIndex      = 15;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View = System.Windows.Forms.View.Details;
     this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
     //
     // columnHeader1
     //
     this.columnHeader1.Text  = "Class Name";
     this.columnHeader1.Width = 86;
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "Assembly";
     this.columnHeader2.Width = 188;
     //
     // richTextBox1
     //
     this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.richTextBox1.BackColor   = System.Drawing.Color.White;
     this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.richTextBox1.Font        = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.richTextBox1.Location    = new System.Drawing.Point(10, 397);
     this.richTextBox1.Name        = "richTextBox1";
     this.richTextBox1.Size        = new System.Drawing.Size(646, 80);
     this.richTextBox1.TabIndex    = 7;
     this.richTextBox1.Text        = "";
     //
     // panel2
     //
     this.panel2.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.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.panel2.Controls.Add(this.htmluiControl1);
     this.panel2.Location = new System.Drawing.Point(10, 10);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(371, 387);
     this.panel2.TabIndex = 8;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.White;
     this.BorderColor       = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.CaptionAlign      = System.Windows.Forms.HorizontalAlignment.Center;
     this.ClientSize        = new System.Drawing.Size(666, 485);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.richTextBox1);
     this.Controls.Add(this.panel1);
     this.DropShadow       = true;
     this.Icon             = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.IconAlign        = System.Windows.Forms.HorizontalAlignment.Left;
     this.IconTextRelation = System.Windows.Forms.LeftRightAlignment.Left;
     this.MetroColor       = System.Drawing.Color.White;
     this.MinimumSize      = new System.Drawing.Size(678, 521);
     this.Name             = "Form1";
     this.Padding          = new System.Windows.Forms.Padding(10);
     this.StartPosition    = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text             = "Controls creation";
     this.Load            += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.htmluiControl1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.textBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.comboBox1)).EndInit();
     this.panel2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #25
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DeltaRuleForm));
     this.groupBox1            = new System.Windows.Forms.GroupBox();
     this.classesBox           = new System.Windows.Forms.TextBox();
     this.label10              = new System.Windows.Forms.Label();
     this.dataList             = new System.Windows.Forms.ListView();
     this.loadButton           = new System.Windows.Forms.Button();
     this.openFileDialog       = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2            = new System.Windows.Forms.GroupBox();
     this.currentErrorBox      = new System.Windows.Forms.TextBox();
     this.label11              = new System.Windows.Forms.Label();
     this.label9               = new System.Windows.Forms.Label();
     this.currentIterationBox  = new System.Windows.Forms.TextBox();
     this.label8               = new System.Windows.Forms.Label();
     this.label7               = new System.Windows.Forms.Label();
     this.errorLimitCheck      = new System.Windows.Forms.CheckBox();
     this.oneNeuronForTwoCheck = new System.Windows.Forms.CheckBox();
     this.neuronsBox           = new System.Windows.Forms.TextBox();
     this.label6               = new System.Windows.Forms.Label();
     this.label5               = new System.Windows.Forms.Label();
     this.iterationsBox        = new System.Windows.Forms.TextBox();
     this.label4               = new System.Windows.Forms.Label();
     this.errorLimitBox        = new System.Windows.Forms.TextBox();
     this.label3               = new System.Windows.Forms.Label();
     this.alphaBox             = new System.Windows.Forms.TextBox();
     this.label2               = new System.Windows.Forms.Label();
     this.label1               = new System.Windows.Forms.Label();
     this.learningRateBox      = new System.Windows.Forms.TextBox();
     this.stopButton           = new System.Windows.Forms.Button();
     this.startButton          = new System.Windows.Forms.Button();
     this.groupBox3            = new System.Windows.Forms.GroupBox();
     this.saveFilesCheck       = new System.Windows.Forms.CheckBox();
     this.label13              = new System.Windows.Forms.Label();
     this.weightsList          = new System.Windows.Forms.ListView();
     this.columnHeader1        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader3        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.errorChart           = new Accord.Controls.Chart();
     this.label12              = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.classesBox);
     this.groupBox1.Controls.Add(this.label10);
     this.groupBox1.Controls.Add(this.dataList);
     this.groupBox1.Controls.Add(this.loadButton);
     this.groupBox1.Location = new System.Drawing.Point(16, 15);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(368, 482);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // classesBox
     //
     this.classesBox.Location = new System.Drawing.Point(304, 434);
     this.classesBox.Name     = "classesBox";
     this.classesBox.ReadOnly = true;
     this.classesBox.Size     = new System.Drawing.Size(48, 26);
     this.classesBox.TabIndex = 3;
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(224, 437);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(80, 18);
     this.label10.TabIndex = 2;
     this.label10.Text     = "Classes:";
     //
     // dataList
     //
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines     = true;
     this.dataList.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.dataList.Location      = new System.Drawing.Point(16, 29);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(336, 395);
     this.dataList.TabIndex      = 0;
     this.dataList.UseCompatibleStateImageBehavior = false;
     this.dataList.View = System.Windows.Forms.View.Details;
     //
     // loadButton
     //
     this.loadButton.Location = new System.Drawing.Point(16, 434);
     this.loadButton.Name     = "loadButton";
     this.loadButton.Size     = new System.Drawing.Size(120, 34);
     this.loadButton.TabIndex = 1;
     this.loadButton.Text     = "&Load";
     this.loadButton.Click   += new System.EventHandler(this.loadButton_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.currentErrorBox);
     this.groupBox2.Controls.Add(this.label11);
     this.groupBox2.Controls.Add(this.label9);
     this.groupBox2.Controls.Add(this.currentIterationBox);
     this.groupBox2.Controls.Add(this.label8);
     this.groupBox2.Controls.Add(this.label7);
     this.groupBox2.Controls.Add(this.errorLimitCheck);
     this.groupBox2.Controls.Add(this.oneNeuronForTwoCheck);
     this.groupBox2.Controls.Add(this.neuronsBox);
     this.groupBox2.Controls.Add(this.label6);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.errorLimitBox);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.alphaBox);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Controls.Add(this.learningRateBox);
     this.groupBox2.Controls.Add(this.stopButton);
     this.groupBox2.Controls.Add(this.startButton);
     this.groupBox2.Location = new System.Drawing.Point(400, 15);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(296, 482);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Training";
     //
     // currentErrorBox
     //
     this.currentErrorBox.Location = new System.Drawing.Point(200, 373);
     this.currentErrorBox.Name     = "currentErrorBox";
     this.currentErrorBox.ReadOnly = true;
     this.currentErrorBox.Size     = new System.Drawing.Size(80, 26);
     this.currentErrorBox.TabIndex = 20;
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(16, 376);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(194, 20);
     this.label11.TabIndex = 19;
     this.label11.Text     = "Current average error:";
     //
     // label9
     //
     this.label9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label9.Location    = new System.Drawing.Point(16, 414);
     this.label9.Name        = "label9";
     this.label9.Size        = new System.Drawing.Size(264, 3);
     this.label9.TabIndex    = 18;
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(200, 336);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(80, 26);
     this.currentIterationBox.TabIndex = 17;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(16, 339);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(157, 23);
     this.label8.TabIndex = 16;
     this.label8.Text     = "Current iteration:";
     //
     // label7
     //
     this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label7.Location    = new System.Drawing.Point(16, 322);
     this.label7.Name        = "label7";
     this.label7.Size        = new System.Drawing.Size(264, 2);
     this.label7.TabIndex    = 15;
     //
     // errorLimitCheck
     //
     this.errorLimitCheck.Location = new System.Drawing.Point(16, 270);
     this.errorLimitCheck.Name     = "errorLimitCheck";
     this.errorLimitCheck.Size     = new System.Drawing.Size(251, 44);
     this.errorLimitCheck.TabIndex = 14;
     this.errorLimitCheck.Text     = "Use error limit (checked) or iterations limit";
     //
     // oneNeuronForTwoCheck
     //
     this.oneNeuronForTwoCheck.Enabled         = false;
     this.oneNeuronForTwoCheck.Location        = new System.Drawing.Point(16, 241);
     this.oneNeuronForTwoCheck.Name            = "oneNeuronForTwoCheck";
     this.oneNeuronForTwoCheck.Size            = new System.Drawing.Size(269, 22);
     this.oneNeuronForTwoCheck.TabIndex        = 13;
     this.oneNeuronForTwoCheck.Text            = "Use 1 neuron for 2 classes";
     this.oneNeuronForTwoCheck.CheckedChanged += new System.EventHandler(this.oneNeuronForTwoCheck_CheckedChanged);
     //
     // neuronsBox
     //
     this.neuronsBox.Location = new System.Drawing.Point(200, 197);
     this.neuronsBox.Name     = "neuronsBox";
     this.neuronsBox.ReadOnly = true;
     this.neuronsBox.Size     = new System.Drawing.Size(80, 26);
     this.neuronsBox.TabIndex = 12;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 200);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(94, 18);
     this.label6.TabIndex = 11;
     this.label6.Text     = "Neurons:";
     //
     // label5
     //
     this.label5.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label5.Location = new System.Drawing.Point(200, 168);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(93, 25);
     this.label5.TabIndex = 10;
     this.label5.Text     = "( 0 - inifinity )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(200, 139);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(80, 26);
     this.iterationsBox.TabIndex = 9;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 142);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(144, 19);
     this.label4.TabIndex = 8;
     this.label4.Text     = "Iterations limit:";
     //
     // errorLimitBox
     //
     this.errorLimitBox.Location = new System.Drawing.Point(200, 102);
     this.errorLimitBox.Name     = "errorLimitBox";
     this.errorLimitBox.Size     = new System.Drawing.Size(80, 26);
     this.errorLimitBox.TabIndex = 7;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(16, 105);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(176, 22);
     this.label3.TabIndex = 6;
     this.label3.Text     = "Learning error limit:";
     //
     // alphaBox
     //
     this.alphaBox.Location = new System.Drawing.Point(200, 66);
     this.alphaBox.Name     = "alphaBox";
     this.alphaBox.Size     = new System.Drawing.Size(80, 26);
     this.alphaBox.TabIndex = 5;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 69);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(192, 22);
     this.label2.TabIndex = 4;
     this.label2.Text     = "Sigmoid\'s alpha value:";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 32);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(120, 24);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Learning rate:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(200, 29);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(80, 26);
     this.learningRateBox.TabIndex = 3;
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(160, 434);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(120, 34);
     this.stopButton.TabIndex = 6;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(16, 434);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(120, 34);
     this.startButton.TabIndex = 5;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.saveFilesCheck);
     this.groupBox3.Controls.Add(this.label13);
     this.groupBox3.Controls.Add(this.weightsList);
     this.groupBox3.Controls.Add(this.errorChart);
     this.groupBox3.Controls.Add(this.label12);
     this.groupBox3.Location = new System.Drawing.Point(712, 15);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(352, 482);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Solution";
     //
     // saveFilesCheck
     //
     this.saveFilesCheck.Location = new System.Drawing.Point(16, 446);
     this.saveFilesCheck.Name     = "saveFilesCheck";
     this.saveFilesCheck.Size     = new System.Drawing.Size(312, 22);
     this.saveFilesCheck.TabIndex = 4;
     this.saveFilesCheck.Text     = "Save weights and errors to files";
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(16, 248);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(160, 18);
     this.label13.TabIndex = 3;
     this.label13.Text     = "Error\'s dynamics:";
     //
     // weightsList
     //
     this.weightsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2,
         this.columnHeader3
     });
     this.weightsList.FullRowSelect = true;
     this.weightsList.GridLines     = true;
     this.weightsList.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.weightsList.Location      = new System.Drawing.Point(16, 51);
     this.weightsList.Name          = "weightsList";
     this.weightsList.Size          = new System.Drawing.Size(320, 190);
     this.weightsList.TabIndex      = 2;
     this.weightsList.UseCompatibleStateImageBehavior = false;
     this.weightsList.View = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "Neuron";
     //
     // columnHeader2
     //
     this.columnHeader2.Text = "Weight";
     //
     // columnHeader3
     //
     this.columnHeader3.Text = "Value";
     //
     // errorChart
     //
     this.errorChart.Location = new System.Drawing.Point(16, 270);
     this.errorChart.Name     = "errorChart";
     this.errorChart.Size     = new System.Drawing.Size(320, 161);
     this.errorChart.TabIndex = 1;
     this.errorChart.Text     = "chart1";
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(16, 29);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(160, 22);
     this.label12.TabIndex = 0;
     this.label12.Text     = "Network weights:";
     //
     // DeltaRuleForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(1076, 512);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.Name            = "DeltaRuleForm";
     this.Text            = "Classifier using Delta Rule Learning";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #26
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.m_lsvSampleList     = new System.Windows.Forms.ListView();
     this.m_chDeviceSampleID  = new System.Windows.Forms.ColumnHeader();
     this.m_chCheckDat        = new System.Windows.Forms.ColumnHeader();
     this.m_chBaseSample      = new System.Windows.Forms.ColumnHeader();
     this.m_ctmBaseSample     = new System.Windows.Forms.ContextMenu();
     this.m_mniSetBaseSample  = new System.Windows.Forms.MenuItem();
     this.m_lsvSampleResult   = new System.Windows.Forms.ListView();
     this.m_chItem            = new System.Windows.Forms.ColumnHeader();
     this.m_chCheckResult     = new System.Windows.Forms.ColumnHeader();
     this.m_btnClear          = new PinkieControls.ButtonXP();
     this.m_btnSave           = new PinkieControls.ButtonXP();
     this.m_txtDeviceSampleID = new System.Windows.Forms.TextBox();
     this.m_cboLisDevice      = new com.digitalwave.iCare.gui.LIS.ctlLISDeviceComboBox();
     this.m_lbCheckDat        = new System.Windows.Forms.Label();
     this.m_dtpCheckDate      = new System.Windows.Forms.DateTimePicker();
     this.m_lbCheckDevice     = new System.Windows.Forms.Label();
     this.m_lbDeviceSampleID  = new System.Windows.Forms.Label();
     this.m_cboDeviceModel    = new com.digitalwave.iCare.gui.LIS.ctlLISDeviceModelComboBox();
     this.m_lbDeviceModel     = new System.Windows.Forms.Label();
     this.m_grpQuery          = new System.Windows.Forms.GroupBox();
     this.m_btnQuery          = new PinkieControls.ButtonXP();
     this.m_lsvResultUnite    = new System.Windows.Forms.ListView();
     this.m_chUnitItem        = new System.Windows.Forms.ColumnHeader();
     this.m_chUniteResult     = new System.Windows.Forms.ColumnHeader();
     this.m_palBottom         = new System.Windows.Forms.Panel();
     this.btnClose            = new PinkieControls.ButtonXP();
     this.m_btnCancel         = new PinkieControls.ButtonXP();
     this.m_palMiddle         = new System.Windows.Forms.Panel();
     this.panel1 = new System.Windows.Forms.Panel();
     this.m_grpQuery.SuspendLayout();
     this.m_palBottom.SuspendLayout();
     this.m_palMiddle.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // m_lsvSampleList
     //
     this.m_lsvSampleList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                         | System.Windows.Forms.AnchorStyles.Left)));
     this.m_lsvSampleList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.m_chDeviceSampleID,
         this.m_chCheckDat,
         this.m_chBaseSample
     });
     this.m_lsvSampleList.ContextMenu   = this.m_ctmBaseSample;
     this.m_lsvSampleList.Font          = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.m_lsvSampleList.FullRowSelect = true;
     this.m_lsvSampleList.GridLines     = true;
     this.m_lsvSampleList.HideSelection = false;
     this.m_lsvSampleList.Location      = new System.Drawing.Point(12, 20);
     this.m_lsvSampleList.MultiSelect   = false;
     this.m_lsvSampleList.Name          = "m_lsvSampleList";
     this.m_lsvSampleList.Size          = new System.Drawing.Size(488, 454);
     this.m_lsvSampleList.TabIndex      = 0;
     this.m_lsvSampleList.UseCompatibleStateImageBehavior = false;
     this.m_lsvSampleList.View = System.Windows.Forms.View.Details;
     this.m_lsvSampleList.SelectedIndexChanged += new System.EventHandler(this.m_lsvSampleList_SelectedIndexChanged);
     //
     // m_chDeviceSampleID
     //
     this.m_chDeviceSampleID.Text  = "仪器样本号";
     this.m_chDeviceSampleID.Width = 96;
     //
     // m_chCheckDat
     //
     this.m_chCheckDat.Text  = "检验时间";
     this.m_chCheckDat.Width = 150;
     //
     // m_chBaseSample
     //
     this.m_chBaseSample.Text  = "基准样本";
     this.m_chBaseSample.Width = 72;
     //
     // m_ctmBaseSample
     //
     this.m_ctmBaseSample.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.m_mniSetBaseSample
     });
     //
     // m_mniSetBaseSample
     //
     this.m_mniSetBaseSample.Index  = 0;
     this.m_mniSetBaseSample.Text   = "设为基准样本";
     this.m_mniSetBaseSample.Click += new System.EventHandler(this.m_mniSetBaseSample_Click);
     //
     // m_lsvSampleResult
     //
     this.m_lsvSampleResult.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)));
     this.m_lsvSampleResult.CheckBoxes = true;
     this.m_lsvSampleResult.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.m_chItem,
         this.m_chCheckResult
     });
     this.m_lsvSampleResult.FullRowSelect = true;
     this.m_lsvSampleResult.GridLines     = true;
     this.m_lsvSampleResult.HideSelection = false;
     this.m_lsvSampleResult.Location      = new System.Drawing.Point(516, 20);
     this.m_lsvSampleResult.Name          = "m_lsvSampleResult";
     this.m_lsvSampleResult.Size          = new System.Drawing.Size(236, 454);
     this.m_lsvSampleResult.TabIndex      = 1;
     this.m_lsvSampleResult.UseCompatibleStateImageBehavior = false;
     this.m_lsvSampleResult.View       = System.Windows.Forms.View.Details;
     this.m_lsvSampleResult.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.m_lsvSampleResult_ItemCheck);
     //
     // m_chItem
     //
     this.m_chItem.Text  = "项目";
     this.m_chItem.Width = 120;
     //
     // m_chCheckResult
     //
     this.m_chCheckResult.Text  = "仪器结果";
     this.m_chCheckResult.Width = 100;
     //
     // m_btnClear
     //
     this.m_btnClear.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.m_btnClear.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200)))));
     this.m_btnClear.DefaultScheme = true;
     this.m_btnClear.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.m_btnClear.Hint          = "";
     this.m_btnClear.Location      = new System.Drawing.Point(868, 32);
     this.m_btnClear.Name          = "m_btnClear";
     this.m_btnClear.Scheme        = PinkieControls.ButtonXP.Schemes.Blue;
     this.m_btnClear.Size          = new System.Drawing.Size(80, 32);
     this.m_btnClear.TabIndex      = 3;
     this.m_btnClear.Text          = "重置";
     this.m_btnClear.Click        += new System.EventHandler(this.m_btnClear_Click);
     //
     // m_btnSave
     //
     this.m_btnSave.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.m_btnSave.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200)))));
     this.m_btnSave.DefaultScheme = true;
     this.m_btnSave.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.m_btnSave.Hint          = "";
     this.m_btnSave.Location      = new System.Drawing.Point(726, 13);
     this.m_btnSave.Name          = "m_btnSave";
     this.m_btnSave.Scheme        = PinkieControls.ButtonXP.Schemes.Blue;
     this.m_btnSave.Size          = new System.Drawing.Size(80, 32);
     this.m_btnSave.TabIndex      = 5;
     this.m_btnSave.Text          = "确定";
     this.m_btnSave.Click        += new System.EventHandler(this.buttonXP1_Click);
     //
     // m_txtDeviceSampleID
     //
     this.m_txtDeviceSampleID.Location  = new System.Drawing.Point(456, 36);
     this.m_txtDeviceSampleID.MaxLength = 20;
     this.m_txtDeviceSampleID.Name      = "m_txtDeviceSampleID";
     this.m_txtDeviceSampleID.Size      = new System.Drawing.Size(96, 23);
     this.m_txtDeviceSampleID.TabIndex  = 12;
     //
     // m_cboLisDevice
     //
     this.m_cboLisDevice.DisplayMember = "DEVICENAME_VCHR";
     this.m_cboLisDevice.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_cboLisDevice.DropDownWidth = 96;
     this.m_cboLisDevice.Location      = new System.Drawing.Point(260, 36);
     this.m_cboLisDevice.Name          = "m_cboLisDevice";
     this.m_cboLisDevice.Size          = new System.Drawing.Size(104, 22);
     this.m_cboLisDevice.TabIndex      = 10;
     this.m_cboLisDevice.ValueMember   = "DEVICEID_CHR";
     //
     // m_lbCheckDat
     //
     this.m_lbCheckDat.AutoSize = true;
     this.m_lbCheckDat.Location = new System.Drawing.Point(564, 40);
     this.m_lbCheckDat.Name     = "m_lbCheckDat";
     this.m_lbCheckDat.Size     = new System.Drawing.Size(63, 14);
     this.m_lbCheckDat.TabIndex = 15;
     this.m_lbCheckDat.Text     = "检验日期";
     //
     // m_dtpCheckDate
     //
     this.m_dtpCheckDate.CustomFormat = "yyyy-MM-dd";
     this.m_dtpCheckDate.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.m_dtpCheckDate.Location     = new System.Drawing.Point(632, 36);
     this.m_dtpCheckDate.Name         = "m_dtpCheckDate";
     this.m_dtpCheckDate.Size         = new System.Drawing.Size(104, 23);
     this.m_dtpCheckDate.TabIndex     = 13;
     //
     // m_lbCheckDevice
     //
     this.m_lbCheckDevice.AutoSize = true;
     this.m_lbCheckDevice.Location = new System.Drawing.Point(196, 40);
     this.m_lbCheckDevice.Name     = "m_lbCheckDevice";
     this.m_lbCheckDevice.Size     = new System.Drawing.Size(63, 14);
     this.m_lbCheckDevice.TabIndex = 11;
     this.m_lbCheckDevice.Text     = "检验仪器";
     //
     // m_lbDeviceSampleID
     //
     this.m_lbDeviceSampleID.AutoSize = true;
     this.m_lbDeviceSampleID.Location = new System.Drawing.Point(376, 40);
     this.m_lbDeviceSampleID.Name     = "m_lbDeviceSampleID";
     this.m_lbDeviceSampleID.Size     = new System.Drawing.Size(77, 14);
     this.m_lbDeviceSampleID.TabIndex = 14;
     this.m_lbDeviceSampleID.Text     = "仪器样本号";
     //
     // m_cboDeviceModel
     //
     this.m_cboDeviceModel.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_cboDeviceModel.Location              = new System.Drawing.Point(80, 36);
     this.m_cboDeviceModel.Name                  = "m_cboDeviceModel";
     this.m_cboDeviceModel.Size                  = new System.Drawing.Size(104, 22);
     this.m_cboDeviceModel.TabIndex              = 9;
     this.m_cboDeviceModel.SelectedIndexChanged += new System.EventHandler(this.m_cboDeviceModel_SelectedIndexChanged);
     //
     // m_lbDeviceModel
     //
     this.m_lbDeviceModel.AutoSize = true;
     this.m_lbDeviceModel.Location = new System.Drawing.Point(16, 40);
     this.m_lbDeviceModel.Name     = "m_lbDeviceModel";
     this.m_lbDeviceModel.Size     = new System.Drawing.Size(63, 14);
     this.m_lbDeviceModel.TabIndex = 39;
     this.m_lbDeviceModel.Text     = "仪器类型";
     //
     // m_grpQuery
     //
     this.m_grpQuery.Controls.Add(this.m_btnQuery);
     this.m_grpQuery.Controls.Add(this.m_lbDeviceModel);
     this.m_grpQuery.Controls.Add(this.m_cboDeviceModel);
     this.m_grpQuery.Controls.Add(this.m_cboLisDevice);
     this.m_grpQuery.Controls.Add(this.m_lbCheckDevice);
     this.m_grpQuery.Controls.Add(this.m_lbDeviceSampleID);
     this.m_grpQuery.Controls.Add(this.m_lbCheckDat);
     this.m_grpQuery.Controls.Add(this.m_txtDeviceSampleID);
     this.m_grpQuery.Controls.Add(this.m_dtpCheckDate);
     this.m_grpQuery.Controls.Add(this.m_btnClear);
     this.m_grpQuery.Dock     = System.Windows.Forms.DockStyle.Top;
     this.m_grpQuery.Location = new System.Drawing.Point(0, 0);
     this.m_grpQuery.Name     = "m_grpQuery";
     this.m_grpQuery.Size     = new System.Drawing.Size(1012, 84);
     this.m_grpQuery.TabIndex = 41;
     this.m_grpQuery.TabStop  = false;
     this.m_grpQuery.Text     = "查询";
     //
     // m_btnQuery
     //
     this.m_btnQuery.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200)))));
     this.m_btnQuery.DefaultScheme = true;
     this.m_btnQuery.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.m_btnQuery.Hint          = "";
     this.m_btnQuery.Location      = new System.Drawing.Point(772, 32);
     this.m_btnQuery.Name          = "m_btnQuery";
     this.m_btnQuery.Scheme        = PinkieControls.ButtonXP.Schemes.Blue;
     this.m_btnQuery.Size          = new System.Drawing.Size(80, 32);
     this.m_btnQuery.TabIndex      = 41;
     this.m_btnQuery.Text          = "添加";
     this.m_btnQuery.Click        += new System.EventHandler(this.m_btnQuery_Click);
     //
     // m_lsvResultUnite
     //
     this.m_lsvResultUnite.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.m_lsvResultUnite.CheckBoxes = true;
     this.m_lsvResultUnite.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.m_chUnitItem,
         this.m_chUniteResult
     });
     this.m_lsvResultUnite.Font          = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.m_lsvResultUnite.ForeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(1)))));
     this.m_lsvResultUnite.FullRowSelect = true;
     this.m_lsvResultUnite.GridLines     = true;
     this.m_lsvResultUnite.HideSelection = false;
     this.m_lsvResultUnite.Location      = new System.Drawing.Point(-20, -2);
     this.m_lsvResultUnite.MultiSelect   = false;
     this.m_lsvResultUnite.Name          = "m_lsvResultUnite";
     this.m_lsvResultUnite.Size          = new System.Drawing.Size(252, 454);
     this.m_lsvResultUnite.TabIndex      = 42;
     this.m_lsvResultUnite.UseCompatibleStateImageBehavior = false;
     this.m_lsvResultUnite.View = System.Windows.Forms.View.Details;
     //
     // m_chUnitItem
     //
     this.m_chUnitItem.Text  = "   项目";
     this.m_chUnitItem.Width = 135;
     //
     // m_chUniteResult
     //
     this.m_chUniteResult.Text  = "仪器结果";
     this.m_chUniteResult.Width = 100;
     //
     // m_palBottom
     //
     this.m_palBottom.Controls.Add(this.btnClose);
     this.m_palBottom.Controls.Add(this.m_btnCancel);
     this.m_palBottom.Controls.Add(this.m_btnSave);
     this.m_palBottom.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.m_palBottom.Location = new System.Drawing.Point(0, 565);
     this.m_palBottom.Name     = "m_palBottom";
     this.m_palBottom.Size     = new System.Drawing.Size(1012, 68);
     this.m_palBottom.TabIndex = 43;
     //
     // btnClose
     //
     this.btnClose.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnClose.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200)))));
     this.btnClose.DefaultScheme = true;
     this.btnClose.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.btnClose.Hint          = "";
     this.btnClose.Location      = new System.Drawing.Point(918, 13);
     this.btnClose.Name          = "btnClose";
     this.btnClose.Scheme        = PinkieControls.ButtonXP.Schemes.Blue;
     this.btnClose.Size          = new System.Drawing.Size(80, 32);
     this.btnClose.TabIndex      = 7;
     this.btnClose.Text          = "关闭(&C)";
     this.btnClose.Click        += new System.EventHandler(this.btnClose_Click);
     //
     // m_btnCancel
     //
     this.m_btnCancel.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.m_btnCancel.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200)))));
     this.m_btnCancel.DefaultScheme = true;
     this.m_btnCancel.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.m_btnCancel.Hint          = "";
     this.m_btnCancel.Location      = new System.Drawing.Point(822, 13);
     this.m_btnCancel.Name          = "m_btnCancel";
     this.m_btnCancel.Scheme        = PinkieControls.ButtonXP.Schemes.Blue;
     this.m_btnCancel.Size          = new System.Drawing.Size(80, 32);
     this.m_btnCancel.TabIndex      = 6;
     this.m_btnCancel.Text          = "取消";
     this.m_btnCancel.Click        += new System.EventHandler(this.m_btnCancel_Click);
     //
     // m_palMiddle
     //
     this.m_palMiddle.Controls.Add(this.panel1);
     this.m_palMiddle.Controls.Add(this.m_lsvSampleList);
     this.m_palMiddle.Controls.Add(this.m_lsvSampleResult);
     this.m_palMiddle.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.m_palMiddle.Location = new System.Drawing.Point(0, 84);
     this.m_palMiddle.Name     = "m_palMiddle";
     this.m_palMiddle.Size     = new System.Drawing.Size(1012, 481);
     this.m_palMiddle.TabIndex = 44;
     //
     // panel1
     //
     this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                | System.Windows.Forms.AnchorStyles.Left)));
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel1.Controls.Add(this.m_lsvResultUnite);
     this.panel1.Location = new System.Drawing.Point(764, 20);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(234, 454);
     this.panel1.TabIndex = 43;
     //
     // frmSampleUnite
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(7, 16);
     this.ClientSize        = new System.Drawing.Size(1012, 633);
     this.Controls.Add(this.m_palMiddle);
     this.Controls.Add(this.m_palBottom);
     this.Controls.Add(this.m_grpQuery);
     this.Font          = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Name          = "frmSampleUnite";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "样本融合";
     this.Load         += new System.EventHandler(this.frmSampleUnite_Load);
     this.m_grpQuery.ResumeLayout(false);
     this.m_grpQuery.PerformLayout();
     this.m_palBottom.ResumeLayout(false);
     this.m_palMiddle.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #27
0
 /// <summary>
 /// Erforderliche Methode für die Designerunterstützung.
 /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
 /// </summary>
 private void InitializeComponent()
 {
     this.lvImages         = new System.Windows.Forms.ListView();
     this.clmGrayscale     = new System.Windows.Forms.ColumnHeader();
     this.clmSrcFileName   = new System.Windows.Forms.ColumnHeader();
     this.clmDstFileName   = new System.Windows.Forms.ColumnHeader();
     this.clmPixels        = new System.Windows.Forms.ColumnHeader();
     this.panel1           = new System.Windows.Forms.Panel();
     this.btnOk            = new System.Windows.Forms.Button();
     this.btnCancel        = new System.Windows.Forms.Button();
     this.grpAddImage      = new System.Windows.Forms.GroupBox();
     this.txtDstFile       = new System.Windows.Forms.TextBox();
     this.btnDstFile       = new System.Windows.Forms.Button();
     this.lblDstFile       = new System.Windows.Forms.Label();
     this.txtImageFile     = new System.Windows.Forms.TextBox();
     this.btnImageFile     = new System.Windows.Forms.Button();
     this.label1           = new System.Windows.Forms.Label();
     this.btnAdd           = new System.Windows.Forms.Button();
     this.splitter1        = new System.Windows.Forms.Splitter();
     this.splitter2        = new System.Windows.Forms.Splitter();
     this.picSelectedImage = new System.Windows.Forms.PictureBox();
     this.panel1.SuspendLayout();
     this.grpAddImage.SuspendLayout();
     this.SuspendLayout();
     //
     // lvImages
     //
     this.lvImages.CheckBoxes = true;
     this.lvImages.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.clmGrayscale,
         this.clmSrcFileName,
         this.clmDstFileName,
         this.clmPixels
     });
     this.lvImages.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.lvImages.FullRowSelect         = true;
     this.lvImages.HeaderStyle           = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.lvImages.MultiSelect           = false;
     this.lvImages.Name                  = "lvImages";
     this.lvImages.Size                  = new System.Drawing.Size(584, 268);
     this.lvImages.TabIndex              = 0;
     this.lvImages.View                  = System.Windows.Forms.View.Details;
     this.lvImages.KeyDown              += new System.Windows.Forms.KeyEventHandler(this.lvImages_KeyDown);
     this.lvImages.SelectedIndexChanged += new System.EventHandler(this.lvImages_SelectedIndexChanged);
     //
     // clmGrayscale
     //
     this.clmGrayscale.Text  = "Grayscale noise";
     this.clmGrayscale.Width = 120;
     //
     // clmSrcFileName
     //
     this.clmSrcFileName.Text  = "Image file";
     this.clmSrcFileName.Width = 200;
     //
     // clmDstFileName
     //
     this.clmDstFileName.Text  = "Save result as";
     this.clmDstFileName.Width = 200;
     //
     // clmPixels
     //
     this.clmPixels.Text = "Pixels";
     //
     // panel1
     //
     this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.btnOk,
         this.btnCancel,
         this.grpAddImage
     });
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(0, 271);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(912, 192);
     this.panel1.TabIndex = 1;
     //
     // btnOk
     //
     this.btnOk.Location = new System.Drawing.Point(728, 160);
     this.btnOk.Name     = "btnOk";
     this.btnOk.Size     = new System.Drawing.Size(80, 23);
     this.btnOk.TabIndex = 8;
     this.btnOk.Text     = "OK";
     this.btnOk.Click   += new System.EventHandler(this.btnOk_Click);
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location     = new System.Drawing.Point(816, 160);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.Size         = new System.Drawing.Size(80, 23);
     this.btnCancel.TabIndex     = 9;
     this.btnCancel.Text         = "Cancel";
     this.btnCancel.Click       += new System.EventHandler(this.btnCancel_Click);
     //
     // grpAddImage
     //
     this.grpAddImage.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.txtDstFile,
         this.btnDstFile,
         this.lblDstFile,
         this.txtImageFile,
         this.btnImageFile,
         this.label1,
         this.btnAdd
     });
     this.grpAddImage.Location = new System.Drawing.Point(16, 16);
     this.grpAddImage.Name     = "grpAddImage";
     this.grpAddImage.Size     = new System.Drawing.Size(880, 128);
     this.grpAddImage.TabIndex = 6;
     this.grpAddImage.TabStop  = false;
     this.grpAddImage.Text     = "Add Image";
     //
     // txtDstFile
     //
     this.txtDstFile.Location = new System.Drawing.Point(112, 64);
     this.txtDstFile.Name     = "txtDstFile";
     this.txtDstFile.Size     = new System.Drawing.Size(512, 22);
     this.txtDstFile.TabIndex = 2;
     this.txtDstFile.Text     = "";
     //
     // btnDstFile
     //
     this.btnDstFile.Location = new System.Drawing.Point(624, 64);
     this.btnDstFile.Name     = "btnDstFile";
     this.btnDstFile.TabIndex = 3;
     this.btnDstFile.Text     = "Browse...";
     this.btnDstFile.Click   += new System.EventHandler(this.btnDstFile_Click);
     //
     // lblDstFile
     //
     this.lblDstFile.Location = new System.Drawing.Point(16, 64);
     this.lblDstFile.Name     = "lblDstFile";
     this.lblDstFile.Size     = new System.Drawing.Size(96, 23);
     this.lblDstFile.TabIndex = 6;
     this.lblDstFile.Text     = "Save result as";
     //
     // txtImageFile
     //
     this.txtImageFile.Location = new System.Drawing.Point(112, 32);
     this.txtImageFile.Name     = "txtImageFile";
     this.txtImageFile.Size     = new System.Drawing.Size(512, 22);
     this.txtImageFile.TabIndex = 0;
     this.txtImageFile.Text     = "";
     //
     // btnImageFile
     //
     this.btnImageFile.Location = new System.Drawing.Point(624, 32);
     this.btnImageFile.Name     = "btnImageFile";
     this.btnImageFile.TabIndex = 1;
     this.btnImageFile.Text     = "Browse...";
     this.btnImageFile.Click   += new System.EventHandler(this.btnImageFile_Click);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 32);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(96, 23);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Source file";
     //
     // btnAdd
     //
     this.btnAdd.Location = new System.Drawing.Point(504, 96);
     this.btnAdd.Name     = "btnAdd";
     this.btnAdd.Size     = new System.Drawing.Size(192, 23);
     this.btnAdd.TabIndex = 4;
     this.btnAdd.Text     = "Add to image files";
     this.btnAdd.Click   += new System.EventHandler(this.btnAdd_Click);
     //
     // splitter1
     //
     this.splitter1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.splitter1.Location = new System.Drawing.Point(0, 268);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(912, 3);
     this.splitter1.TabIndex = 2;
     this.splitter1.TabStop  = false;
     //
     // splitter2
     //
     this.splitter2.Dock     = System.Windows.Forms.DockStyle.Right;
     this.splitter2.Location = new System.Drawing.Point(581, 0);
     this.splitter2.Name     = "splitter2";
     this.splitter2.Size     = new System.Drawing.Size(3, 268);
     this.splitter2.TabIndex = 3;
     this.splitter2.TabStop  = false;
     //
     // picSelectedImage
     //
     this.picSelectedImage.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.picSelectedImage.Dock        = System.Windows.Forms.DockStyle.Right;
     this.picSelectedImage.Location    = new System.Drawing.Point(584, 0);
     this.picSelectedImage.Name        = "picSelectedImage";
     this.picSelectedImage.Size        = new System.Drawing.Size(328, 268);
     this.picSelectedImage.TabIndex    = 4;
     this.picSelectedImage.TabStop     = false;
     //
     // ImageFilesDialog
     //
     this.AcceptButton      = this.btnAdd;
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.CancelButton      = this.btnCancel;
     this.ClientSize        = new System.Drawing.Size(912, 463);
     this.ControlBox        = false;
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.splitter2,
         this.lvImages,
         this.picSelectedImage,
         this.splitter1,
         this.panel1
     });
     this.Name = "ImageFilesDialog";
     this.Text = "Manage Carrier Images";
     this.panel1.ResumeLayout(false);
     this.grpAddImage.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #28
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.edtUser       = new System.Windows.Forms.TextBox();
     this.label2        = new System.Windows.Forms.Label();
     this.btnLogout     = new System.Windows.Forms.Button();
     this.btnLogin      = new System.Windows.Forms.Button();
     this.label5        = new System.Windows.Forms.Label();
     this.label6        = new System.Windows.Forms.Label();
     this.lvMessages    = new System.Windows.Forms.ListView();
     this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.label7        = new System.Windows.Forms.Label();
     this.edtFrom       = new System.Windows.Forms.TextBox();
     this.edtSubject    = new System.Windows.Forms.TextBox();
     this.label8        = new System.Windows.Forms.Label();
     this.memBody       = new System.Windows.Forms.TextBox();
     this.imap          = new CleverComponents.InetSuite.Imap4();
     this.mailMessage   = new CleverComponents.InetSuite.MailMessage();
     this.pictureBox1   = new System.Windows.Forms.PictureBox();
     this.tvFolders     = new System.Windows.Forms.ListBox();
     this.oAuth         = new CleverComponents.InetSuite.OAuth();
     ((System.ComponentModel.ISupportInitialize)(this.imap)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(58, 95);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(124, 20);
     this.edtUser.TabIndex = 4;
     this.edtUser.Text     = "*****@*****.**";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(12, 98);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 16);
     this.label2.TabIndex = 7;
     this.label2.Text     = "User";
     //
     // btnLogout
     //
     this.btnLogout.Location = new System.Drawing.Point(529, 91);
     this.btnLogout.Name     = "btnLogout";
     this.btnLogout.Size     = new System.Drawing.Size(82, 26);
     this.btnLogout.TabIndex = 7;
     this.btnLogout.Text     = "Logout";
     this.btnLogout.Click   += new System.EventHandler(this.btnLogout_Click);
     //
     // btnLogin
     //
     this.btnLogin.Location = new System.Drawing.Point(436, 91);
     this.btnLogin.Name     = "btnLogin";
     this.btnLogin.Size     = new System.Drawing.Size(82, 26);
     this.btnLogin.TabIndex = 6;
     this.btnLogin.Text     = "Login";
     this.btnLogin.Click   += new System.EventHandler(this.btnLogin_Click);
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(12, 131);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(80, 17);
     this.label5.TabIndex = 22;
     this.label5.Text     = "GMail Folders";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(193, 131);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(64, 17);
     this.label6.TabIndex = 23;
     this.label6.Text     = "Messages";
     //
     // lvMessages
     //
     this.lvMessages.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader2,
         this.columnHeader3,
         this.columnHeader4,
         this.columnHeader5
     });
     this.lvMessages.FullRowSelect = true;
     this.lvMessages.HideSelection = false;
     this.lvMessages.Location      = new System.Drawing.Point(196, 151);
     this.lvMessages.Name          = "lvMessages";
     this.lvMessages.Size          = new System.Drawing.Size(415, 115);
     this.lvMessages.TabIndex      = 9;
     this.lvMessages.UseCompatibleStateImageBehavior = false;
     this.lvMessages.View = System.Windows.Forms.View.Details;
     this.lvMessages.SelectedIndexChanged += new System.EventHandler(this.lvMessages_SelectedIndexChanged);
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "Subject";
     this.columnHeader2.Width = 100;
     //
     // columnHeader3
     //
     this.columnHeader3.Text  = "From";
     this.columnHeader3.Width = 100;
     //
     // columnHeader4
     //
     this.columnHeader4.Text  = "Date";
     this.columnHeader4.Width = 80;
     //
     // columnHeader5
     //
     this.columnHeader5.Text = "Size";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(193, 282);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(48, 23);
     this.label7.TabIndex = 25;
     this.label7.Text     = "From";
     //
     // edtFrom
     //
     this.edtFrom.Location = new System.Drawing.Point(247, 279);
     this.edtFrom.Name     = "edtFrom";
     this.edtFrom.ReadOnly = true;
     this.edtFrom.Size     = new System.Drawing.Size(364, 20);
     this.edtFrom.TabIndex = 10;
     //
     // edtSubject
     //
     this.edtSubject.Location = new System.Drawing.Point(247, 306);
     this.edtSubject.Name     = "edtSubject";
     this.edtSubject.ReadOnly = true;
     this.edtSubject.Size     = new System.Drawing.Size(364, 20);
     this.edtSubject.TabIndex = 11;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(193, 309);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(48, 23);
     this.label8.TabIndex = 27;
     this.label8.Text     = "Subject";
     //
     // memBody
     //
     this.memBody.Location   = new System.Drawing.Point(196, 335);
     this.memBody.Multiline  = true;
     this.memBody.Name       = "memBody";
     this.memBody.ReadOnly   = true;
     this.memBody.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memBody.Size       = new System.Drawing.Size(415, 106);
     this.memBody.TabIndex   = 12;
     //
     // mailMessage
     //
     this.mailMessage.Date       = new System.DateTime(2007, 1, 10, 13, 51, 45, 827);
     this.mailMessage.From.Email = "";
     this.mailMessage.From.Name  = "";
     //
     // pictureBox1
     //
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pictureBox1.Image    = global::GMailIMAP.Properties.Resources.background_net;
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(623, 78);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBox1.TabIndex = 28;
     this.pictureBox1.TabStop  = false;
     //
     // tvFolders
     //
     this.tvFolders.Location              = new System.Drawing.Point(15, 151);
     this.tvFolders.Name                  = "tvFolders";
     this.tvFolders.Size                  = new System.Drawing.Size(167, 290);
     this.tvFolders.TabIndex              = 8;
     this.tvFolders.SelectedIndexChanged += new System.EventHandler(this.tvFolders_SelectedIndexChanged);
     //
     // oAuth
     //
     this.oAuth.AuthUrl      = null;
     this.oAuth.ClientID     = null;
     this.oAuth.ClientSecret = null;
     this.oAuth.Password     = null;
     this.oAuth.RedirectUrl  = null;
     this.oAuth.Scope        = null;
     this.oAuth.State        = null;
     this.oAuth.TokenUrl     = null;
     this.oAuth.UserName     = null;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(623, 452);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.memBody);
     this.Controls.Add(this.edtSubject);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.edtFrom);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.lvMessages);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.tvFolders);
     this.Controls.Add(this.btnLogout);
     this.Controls.Add(this.btnLogin);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.label2);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "GMAIL IMAP client with OAuth - Sample";
     ((System.ComponentModel.ISupportInitialize)(this.imap)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemple #29
-1
 public ModulesController(ListView listView)
     : base(listView)
 {
     Columns.Add(new StandardColumn_Int(
         IDS.Modules_Column_ID,
         (int)ModuleItemTypes.ID));
     Columns.Add(new StandardColumn(
         IDS.Modules_Column_Name,
         (int)ModuleItemTypes.Name));
     Columns.Add(new StandardColumn(
         IDS.Modules_Column_Path,
         (int)ModuleItemTypes.Path));
     Columns.Add(new StandardColumn_Int(
         IDS.Modules_Column_ModuleMemorySize,
         (int)ModuleItemTypes.ModuleMemorySize));
     Columns.Add(new StandardColumn(
         IDS.Modules_Column_FileDescription,
         (int)ModuleItemTypes.FileDescription));
     Columns.Add(new StandardColumn(
         IDS.Modules_Column_FileVersion,
         (int)ModuleItemTypes.FileVersion));
     Columns.Add(new StandardColumn(
         IDS.Modules_Column_Product,
         (int)ModuleItemTypes.Product));
     Columns.Add(new StandardColumn(
         IDS.Modules_Column_ProductVersion,
         (int)ModuleItemTypes.ProductVersion));
 }
Exemple #30
-1
 public ListViewSort(ListView listView)
 {
     _listView = listView;
     _listView.Sorting = SortOrder.Ascending;
     _listView.ListViewItemSorter = new FieldComparer(0, true);
     _listView.ColumnClick += ListHeader_Click;
 }
Exemple #31
-1
 public static void ClearlvItem(ListView lv)
 {
     if (lv.Items.Count > 0)
     {
         lv.Items.Clear();
     }
 }
Exemple #32
-1
 // Метод удаления строки из таблицы.
 public static void DeleteColumns(int index, ListView criminalTable, ListOfCriminals directoryList, ListOfCriminalGroup listCriminalGroup)
 {
     directoryList.Data.RemoveAt(index);
     for (int i = index; i < directoryList.Data.Count; i++)
         directoryList.Data[i].Index += -1;
     criminalTable.Items.Clear();
 }
Exemple #33
-1
        public CheckedLVItemDXList(ListView lv)
        {
            if(lv == null) throw new ArgumentNullException("lv");

            m_lv = lv;
            m_lv.ItemChecked += this.OnItemCheckedChanged;
        }
Exemple #34
-1
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent() {
			this.lvwFields = new System.Windows.Forms.ListView();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.SuspendLayout();
			// 
			// lvwFields
			// 
			this.lvwFields.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.lvwFields.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																						this.columnHeader1});
			this.lvwFields.FullRowSelect = true;
			this.lvwFields.HideSelection = false;
			this.lvwFields.Location = new System.Drawing.Point(0, 0);
			this.lvwFields.Name = "lvwFields";
			this.lvwFields.Size = new System.Drawing.Size(320, 200);
			this.lvwFields.TabIndex = 0;
			this.lvwFields.View = System.Windows.Forms.View.Details;
			// 
			// columnHeader1
			// 
			this.columnHeader1.Text = "Fields";
			this.columnHeader1.Width = 400;
			// 
			// ucPick_Fields
			// 
			this.Controls.Add(this.lvwFields);
			this.Name = "ucPick_Fields";
			this.Size = new System.Drawing.Size(320, 184);
			this.ResumeLayout(false);

		}
Exemple #35
-1
 public ItemFinder(ListView lv)
 {
     itemPos = new HVH_Ken_Modules.ItemPosite(lv);
     m_Lv = lv;
     lv.MultiSelect = false;
     InitializeComponent();
 }
Exemple #36
-1
 public static void ValidateAndSelectProjectFile(string XmlFileName, ListView lstSelectProject, AppWin_Si4460_CP_ProjectData projectData)
 {
     XmlDocument xmlSerialisedForm = new XmlDocument();
     xmlSerialisedForm.Load(XmlFileName);
     AppWin_Si4460_CP_ProjectData data = ValidateProject(xmlSerialisedForm, projectData.ChipType, projectData.ChipRevision, projectData.Version);
     SelectProject(lstSelectProject, data.ProjectName);
 }
        public frmReceiptsRecordDialog(ListView lvMain, List<ConsumeMachineMaster_cmm_Info> cmmList)
        {
            InitializeComponent();

            this._lvMain = lvMain;
            this._cmmList = cmmList;

            _lvList = new List<int>();
            foreach(ListViewItem lvItem in _lvMain.CheckedItems)
            {

                //_lvList.Add(lvItem.Index);
                //try
                //{
                //    _lvList.Add(Int32.Parse(lvItem.SubItems[2].ToString()));
                //}
                //catch
                //{

                //}

                try
                {
                    string s = lvItem.SubItems[2].Text;

                    _lvList.Add(Int32.Parse(lvItem.SubItems[2].Text));
                }
                catch
                {

                }
            }
        }
Exemple #38
-1
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent() {
            this.listView = new System.Windows.Forms.ListView();
            this.SuspendLayout();
            // 
            // listView
            // 
            this.listView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.listView.Dock = System.Windows.Forms.DockStyle.Fill;
            this.listView.FullRowSelect = true;
            this.listView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.listView.HideSelection = false;
            this.listView.Location = new System.Drawing.Point(0, 0);
            this.listView.MultiSelect = false;
            this.listView.Name = "listView";
            this.listView.Size = new System.Drawing.Size(292, 300);
            this.listView.TabIndex = 0;
            this.listView.TabStop = false;
            this.listView.View = System.Windows.Forms.View.Details;
            // 
            // QuickListForm
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(292, 300);
            this.Controls.Add(this.listView);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.Name = "QuickListForm";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
            this.TopMost = true;
            this.ResumeLayout(false);

        }
Exemple #39
-1
        // This subroutine is a shortcut that changes the detail-list data on-screen if dropdown selectors are changed
        // It also plays a part in initialisation
        private void changeHardwareDetails(object hardwareInstance, ListView list)
        {
            // Clear the list
            list.Items.Clear();

            if (hardwareInstance != null)
            {
                // Get the properties of the given hardware class
                FieldInfo[] classFields = hardwareInstance.GetType().GetFields();
                string name, value;
                // Loop through each field in the class
                foreach (FieldInfo field in classFields)
                {
                    // Extract the field name (format it)
                    name = fieldToString(field.Name);
                    // Extract the value
                    value = Convert.ToString(field.GetValue(hardwareInstance));
                    // If the value is zero or blank, output N/A
                    if (value == "0" || value == "") value = "N/A";
                    // Add the value to the list
                    list.Items.Add(new ListViewItem(new string[] {
                        name,
                        value
                    }));
                }
                // Resize columns
                list.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
                // Make last column fill the remaining width
                list.Columns[list.Columns.Count - 1].Width = -2;
            }
        }
        public MoveDataPrompt(ListView.SelectedListViewItemCollection selections)
        {
            InitializeComponent();
            this.selections = selections;

            if (selections.Count < 1)
            {
                Close();
            }
            else if (selections.Count == 1)
            {
                Torrent t = (Torrent)selections[0];
                Text = string.Format(OtherStrings.MoveX, t.Text);
            }
            else
            {
                Text = OtherStrings.MoveMultipleTorrents;
            }

            foreach (string s in Program.Settings.Current.DestPathHistory)
            {
                destinationComboBox.Items.Add(s);
            }

            if (destinationComboBox.Items.Count > 0)
                destinationComboBox.SelectedIndex = 0;
        }
Exemple #41
-1
        public void LoadAtt_BW_DATES_InListView(ListView lv)
        {
            Attendance a = new Attendance();
            DataTable dt = new DataTable();

            dt = a.SELECT_BETWEEN_DATES(dtpFrom.Value, dtpTo.Value);
            if (dt != null)
            {
                lv.Items.Clear();
                int ctr = 1;
                foreach (DataRow r in dt.Rows)
                {
                    ListViewItem li = new ListViewItem();
                    li.Text = ctr.ToString();
                    li.SubItems.Add(r["fullname"].ToString());
                    li.SubItems.Add(r["position_"].ToString());
                    li.SubItems.Add(Convert.ToDateTime(r["date_"].ToString()).ToString("MMMM dd, yyyy"));
                    li.SubItems.Add(Convert.ToDateTime(r["attendance"].ToString()).ToString("hh:mm:ss tt"));

                    li.Tag = r["empid"].ToString();
                    // li.SubItems.Add(Convert.ToDateTime(r["date_updated"].ToString()).ToLongDateString());
                    lv.Items.Add(li);
                    ctr++;
                }
            }
        }
Exemple #42
-1
 public static bool FindInProductList(ListView list, ProductSearchSettings settings)
 {
     if (settings.SearchAll)
         return FindAllInProductList(list, settings);
     else
         return FindFirstInProductList(list, settings);
 }
        public string DownloadDocument(ListView fileList)
        {
            var filePath = string.Empty;

               ListViewItem item = fileList.SelectedItems[0];

               // Strip off 'Root' from the full path
               var path = item.SubItems[1].Text;

               filePath = Properties.Settings.Default.DefaultPath.ToString() + path;
               if (!string.IsNullOrEmpty(filePath))
               {
                   // Get the file from the server
                   using (var output = new FileStream(filePath, FileMode.Create))
                   {
                       Stream downloadStream;

                       using (var client = new TemplateManagerClient())
                       {
                           downloadStream = client.GetFile(path);
                       }

                       downloadStream.CopyTo(output);
                   }
                   return filePath;

               }
               return string.Empty;
        }
 void PopulateListView(ListView lv, List<KeyValuePair<string, Type>> map, Predicate<KeyValuePair<string, Type>> match)
 {
     lv.Visible = false;
     lv.BeginUpdate();
     lv.Items.Clear();
     string fmt = "{0:D" + (map.Count.ToString().Length) + "}";
     int order = 0;
     foreach (var kvp in map)
     {
         order++;
         if (!match(kvp)) continue;
         string tag = getTag(kvp.Key);
         string wrapper = kvp.Value.Name;
         string file = System.IO.Path.GetFileName(kvp.Value.Assembly.Location);
         string title = GetAttrValue(kvp.Value.Assembly, typeof(System.Reflection.AssemblyTitleAttribute), "Title");
         string description = GetAttrValue(kvp.Value.Assembly, typeof(System.Reflection.AssemblyDescriptionAttribute), "Description");
         string company = GetAttrValue(kvp.Value.Assembly, typeof(System.Reflection.AssemblyCompanyAttribute), "Company");
         string product = GetAttrValue(kvp.Value.Assembly, typeof(System.Reflection.AssemblyProductAttribute), "Product");
         ListViewItem lvi = new ListViewItem(new string[] { String.Format(fmt, order), tag, kvp.Key, wrapper, file, title, description, company, product, });
         lvi.Tag = kvp;
         lv.Items.Add(lvi);
     }
     if (lv.Items.Count > 0)
         lv.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
     lv.EndUpdate();
     lv.Visible = true;
 }
Exemple #45
-1
        private void AddLanguageToView(string addon_resource, string language, ListView list)
        {
            try
            {
                if (languages.ContainsKey(language))
                {
                    languages[language] = LoadPO(language, addon_resource);
                }
                else
                {
                    ColumnHeader[] ch = new ColumnHeader[] { new ColumnHeader() };

                    LanguageInfo lng = LoadPO(language, addon_resource);

                    languages.Add(language, lng);

                    ch[0].Text = string.Format("Translation({0})", lng.RevisionInfo["Language"].Replace(@"\n", ""));
                    ch[0].Width = list.Columns[2].Width;
                    list.Columns.AddRange(ch);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemple #46
-1
        private static void autoSizeColumnsFor(ListView view)
        {
            view.Columns["Name"].Width = -1;
//            view.Columns["Location"].Width = -1;
//            view.Columns["DamageVsLarge"].Width = -2;
//            view.Columns["DamageVsMedium"].Width = -2;
        }
 public TagListViewProcessor(ListView listview)
 {
     _TagTable = new Hashtable(1023);
     _Tags = new Stack<string>();
     _Item_LV = listview;
     _Item_LV.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this._Item_LV_ItemCheck);
 }
 private void CreateUI()
 {
     form = new Form();
     listSearchResults = new ListView();
     form.Controls.Add(listSearchResults);
     svc = new SearchResultServiceImpl(sc, listSearchResults);
 }
        public static void Popola(ref ListView aListView, IList aListOfData)
        {
            aListView.SuspendLayout();
            aListView.BeginUpdate();
            aListView.Items.Clear();

            if (ListUtils.isNotEmpty(aListOfData))
            {
                foreach (object item in aListOfData)
                {
                    if (item is IListViewItemable)
                    {
                        aListView.Items.Add(((IListViewItemable)item).toListViewItem());
                    }
                    else if (item is DateTime)
                    {
                        ListViewItem dateItem = new ListViewItem(item.ToString());
                        dateItem.Tag = item;

                        aListView.Items.Add(dateItem);
                    }
                    else
                    {
                        aListView.Items.Add(((IListViewItemable)item).ToString());
                    }
                }
            }

            aListView.EndUpdate();
            aListView.ResumeLayout();
        }
        internal static void AddToListview(ListView list, KontoEntry entry)
        {
            // Sätt mellanslagstecken ifall en strän i listan kommer att bli tom eller null, så att det finns något att klicka på och så det inte uppstår exception senare.
            entry.ForUi = true;
            var kontoEntryElements = entry.RowToSaveToUiSwitched; // RowToSaveForThis;
            entry.ForUi = false;

            // for (var itemIndex = 0; itemIndex < kontoEntryElements.Length; itemIndex++)//hm, denna kan man nog inte ha här o räkna med bra resultat, men o andra sidan så är det bara för att comboboxen ska dyka upp visuellt, så detta e lugnt
            // {
            // if (string.IsNullOrEmpty(kontoEntryElements[itemIndex])) {
            // kontoEntryElements[itemIndex] = " ";//kanska kan göras på annat ställe
            // }
            // }

            // System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(new string[] {
            // "Neww"}, -1, System.Drawing.Color.Lime, System.Drawing.Color.Empty, null);

            // byt plats på typavkat och kostnad
            // var kostnad = kontoEntryElements[2];
            // var typAvkostnad = kontoEntryElements[5];

            // kontoEntryElements[2] = typAvkostnad;
            // kontoEntryElements[5] = typAvkostnad;

            list.Items.Add(new ListViewItem(kontoEntryElements, -1, entry.FontFrontColor, Color.Empty, null)).Tag =
                entry;

                // man slipper lite tecken och castningarna o likhetstecknet, iom att detta är en fkn//Overkill? hehe, anal. Trodde jag...nu fick jag ju nytta av det så det så
        }