private void MainForm_Load (object sender, EventArgs e) { _multiSelectCheck.Checked = _listView.MultiSelect; ColumnHeader columnHeader = new ColumnHeader (); columnHeader.Text = "Name"; columnHeader.Width = 200; _listView.Columns.Add (columnHeader); columnHeader = new ColumnHeader (); columnHeader.Text = "FirstName"; columnHeader.Width = 150; _listView.Columns.Add (columnHeader); columnHeader = new ColumnHeader (); columnHeader.Text = "Address"; columnHeader.Width = 150; _listView.Columns.Add (columnHeader); columnHeader = new ColumnHeader (); columnHeader.Text = "City"; columnHeader.Width = 150; _listView.Columns.Add (columnHeader); for (int i = 1; i <= 100; i++) { _listView.Items.Add ("Item" + i); } InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
public void AppendColumnHeader(ColumnHeader columnHeader) { PreviousColumnHeader.NextColumnHeader = columnHeader; columnHeader.NextColumnHeader = this; columnHeader.PreviousColumnHeader = PreviousColumnHeader; PreviousColumnHeader = columnHeader; }
public static void AddColumn(this ListView listView, string columnTitle, int columnWidth) { ColumnHeader column = new ColumnHeader (); column.Text = columnTitle; int colIndex = listView.Columns.Add (column); listView.Columns [colIndex].Width = columnWidth; }
public MainForm () { // // _columnHeader // _columnHeader = new ColumnHeader (); _columnHeader.Text = "Reference"; _columnHeader.Width = 400; // // _listView // _listView = new ListView (); _listView.Columns.Add (_columnHeader); _listView.Dock = DockStyle.Fill; _listView.View = View.Details; Controls.Add (_listView); // // MainForm // ClientSize = new Size (300, 150); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82197"; Load += new EventHandler (MainForm_Load); }
public Node(ColumnHeader columnHeader, int rowIndex) { Left = Right = Up = Down = this; ColumnHeader = columnHeader; RowIndex = rowIndex; if (columnHeader != null) columnHeader.AppendNode(this); }
/// <summary> /// Initializes a new instance of the ColumnHeaderRendererEventArgs class. /// </summary> /// <param name="columnHeader"></param> /// <param name="graphics"></param> /// <param name="bounds"></param> /// <param name="style"></param> public ColumnHeaderRendererEventArgs(AdvTree tree, ColumnHeader columnHeader, Graphics graphics, Rectangle bounds, ElementStyle style) { Tree = tree; ColumnHeader = columnHeader; Graphics = graphics; Bounds = bounds; Style = style; }
private string GetCellText(ListEntry row, ColumnHeader column) { if(null == row.Elements[(int)column]) { return ""; } return row.Elements[(int)column].Value; }
public MainForm () { SuspendLayout (); // // _listView // _listView = new ListView (); _listView.Dock = DockStyle.Top; _listView.FullRowSelect = true; _listView.Height = 140; _listView.TabIndex = 0; _listView.View = View.Details; Controls.Add (_listView); // // _nameHeader // _nameHeader = new ColumnHeader (); _nameHeader.Text = "Name"; _nameHeader.Width = 75; _listView.Columns.Add (_nameHeader); // // _firstNameHeader // _firstNameHeader = new ColumnHeader (); _firstNameHeader.Text = "FirstName"; _firstNameHeader.Width = 77; _listView.Columns.Add (_firstNameHeader); // // _countryHeader // _countryHeader = new ColumnHeader (); _countryHeader.Text = "Country"; _countryHeader.Width = 108; _listView.Columns.Add (_countryHeader); // // _bugDescriptionLabel // _bugDescriptionLabel = new Label (); _bugDescriptionLabel.Location = new Point (8, 160); _bugDescriptionLabel.Size = new Size (280, 112); _bugDescriptionLabel.TabIndex = 2; _bugDescriptionLabel.Text = string.Format (CultureInfo.InvariantCulture, "The ListView column headers should not overlap the " + "top of the vertical scrollbar.{0}{0}" + "The horizontal scrollbar should not overlap the " + "bottom of the vertical scrollbar.", Environment.NewLine); Controls.Add (_bugDescriptionLabel); // // Form1 // AutoScaleBaseSize = new Size (5, 13); ClientSize = new Size (292, 240); StartPosition = FormStartPosition.CenterScreen; Text = "bug #79768"; Load += new EventHandler (MainForm_Load); ResumeLayout (false); }
void MainForm_Load (object sender, EventArgs e) { ColumnHeader header = null; header = new ColumnHeader (); header.Text = ""; header.Width = 28; _listView.Columns.Add (header); header = new ColumnHeader (); header.Text = "Title"; header.Width = 102; _listView.Columns.Add (header); header = new ColumnHeader (); header.Text = "Checkout by"; header.Width = 77; _listView.Columns.Add (header); header = new ColumnHeader (); header.Text = "FileName"; header.Width = 123; _listView.Columns.Add (header); header = new ColumnHeader (); header.Text = "Doctype"; header.Width = 72; _listView.Columns.Add (header); header = new ColumnHeader (); header.Text = "Archive"; header.Width = 80; _listView.Columns.Add (header); _listView.BeginUpdate (); _listView.SuspendLayout (); for (int i = 1; i < 1000; i++) { ListViewItem item = _listView.Items.Add (""); if ((i % 3) == 0) item.ForeColor = Color.DarkRed; item.SubItems.Add ("Name 123 123 123 13 123 123 123 " + i); item.SubItems.Add ("Test" + i); item.SubItems.Add ("Test 123 123 123 13 123 123 123" + i); item.SubItems.Add ("Test" + i); item.SubItems.Add ("Test" + i); item.SubItems.Add (""); } _listView.ResumeLayout (); _listView.EndUpdate (); //_listView.Height = 600; InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
public DLX() { _root = new ColumnHeader(-1); _columns = new Dictionary<int, ColumnHeader>(); _nrows = 0; _givens = new List<Link>(); }
public MainForm () { ListViewItem listViewItem1 = new ListViewItem (new string [] { "de Icaza", "Miguel", "Somewhere"}, -1); SuspendLayout (); // // _listView // _listView = new ListView (); _listView.Dock = DockStyle.Top; _listView.FullRowSelect = true; _listView.Height = 97; _listView.Items.Add (listViewItem1); _listView.TabIndex = 0; _listView.View = View.Details; Controls.Add (_listView); // // _nameHeader // _nameHeader = new ColumnHeader (); _nameHeader.Text = "Name"; _nameHeader.Width = 75; _listView.Columns.Add (_nameHeader); // // _firstNameHeader // _firstNameHeader = new ColumnHeader (); _firstNameHeader.Text = "FirstName"; _firstNameHeader.Width = 77; _listView.Columns.Add (_firstNameHeader); // // _countryHeader // _countryHeader = new ColumnHeader (); _countryHeader.Text = "Country"; _countryHeader.Width = 108; _listView.Columns.Add (_countryHeader); // // _bugDescriptionLabel // _bugDescriptionLabel = new Label (); _bugDescriptionLabel.Location = new Point (8, 110); _bugDescriptionLabel.Size = new Size (280, 112); _bugDescriptionLabel.TabIndex = 2; _bugDescriptionLabel.Text = "The row in the listview should not have a focus rectangle drawn around it."; Controls.Add (_bugDescriptionLabel); // // Form1 // AutoScaleBaseSize = new Size (5, 13); ClientSize = new Size (292, 160); StartPosition = FormStartPosition.CenterScreen; Text = "bug #79253"; ResumeLayout (false); }
void MainForm_Load (object sender, EventArgs e) { ColumnHeader nameColumn = new ColumnHeader (); nameColumn.Text = "Name"; _listView.Columns.Add (nameColumn); _listView.Items.Add (new ListViewItem ("Rolf")); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
public static void ApplyColumnStyle(DataGridColumn columnTemplate, ColumnHeader columnHeader) { columnTemplate.Header = columnHeader; if (!columnHeader.IsNumeric) { return; } columnTemplate.HeaderStyle = (Style)Application.Current.Resources["HeaderStyleRightAlign"]; columnTemplate.CellStyle = (Style)Application.Current.Resources["CellStyleRightAlign"]; }
public MForm8() { Text = "ListView"; Size = new Size(350, 300); List<Actress> actresses = new List<Actress>(); actresses.Add(new Actress("Jessica Alba", 1981)); actresses.Add(new Actress("Angelina Jolie", 1975)); actresses.Add(new Actress("Natalie Portman", 1981)); actresses.Add(new Actress("Rachel Weiss", 1971)); actresses.Add(new Actress("Scarlett Johansson", 1984)); ColumnHeader name = new ColumnHeader(); name.Text = "Name"; name.Width = -1; ColumnHeader year = new ColumnHeader(); year.Text = "Year"; SuspendLayout(); ListView lv = new ListView(); lv.Parent = this; lv.FullRowSelect = true; lv.GridLines = true; lv.AllowColumnReorder = true; lv.Sorting = SortOrder.Ascending; lv.Columns.AddRange(new ColumnHeader[] {name, year}); lv.ColumnClick += new ColumnClickEventHandler(ColumnClick); foreach (Actress act in actresses) { ListViewItem item = new ListViewItem(); item.Text = act.name; item.SubItems.Add(act.year.ToString()); lv.Items.Add(item); } lv.Dock = DockStyle.Fill; lv.Click += new EventHandler(OnChanged); sb = new StatusBar(); sb.Parent = this; lv.View = View.Details; ResumeLayout(); CenterToScreen(); }
public MainForm () { _listView = new ListView (); _listView.Dock = DockStyle.Fill; _listView.View = View.Details; _listView.Items.Add ("item 1"); _listView.Items.Add ("item 2"); _listView.Items.Add ("item 3"); #if NET_2_0 _listView.MouseClick += new MouseEventHandler (ListView_MouseClick); #endif _listView.MouseMove += new MouseEventHandler (ListView_MouseMove); Controls.Add (_listView); // // _nameColumnHeader // _nameColumnHeader = new ColumnHeader (); _nameColumnHeader.Text = "Name"; _listView.Columns.Add (_nameColumnHeader); // // _statusBar // _statusBar = new StatusBar (); _statusBar.ShowPanels = true; Controls.Add (_statusBar); // // _activeItemPanel // _activeItemPanel = new StatusBarPanel(); _activeItemPanel.AutoSize = StatusBarPanelAutoSize.Contents; _activeItemPanel.MinWidth = 30; _statusBar.Panels.Add (_activeItemPanel); // // _hitItemPanel // _hitItemPanel = new StatusBarPanel (); _hitItemPanel.AutoSize = StatusBarPanelAutoSize.Spring; _statusBar.Panels.Add (_hitItemPanel); // // MainForm // ClientSize = new Size (300, 300); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82004"; Load += new EventHandler (MainForm_Load); }
// Load data public void LoadData( Array array ) { // this.array = array; behavior = new CellBehavior( array ); // set column and row headers FixedRows = 1; FixedColumns = 1; // Redim the grid Redim( array.GetLength( 0 ) + FixedRows, array.GetLength( 1 ) + FixedColumns ); // Header this[0, 0] = new Header( ); // Column headers for ( int i = 1; i < this.ColumnsCount; i++ ) { ColumnHeader header = new ColumnHeader( i.ToString( ) ); header.EnableSort = false; this[0, i] = header; } // Row headers for ( int i = 1; i < this.RowsCount; i++ ) { this[i, 0] = new RowHeader( i.ToString( ) ); } // Data cells Type type = array.GetValue( 0, 0 ).GetType( ); for ( int i = 1, ia = 0; i < this.RowsCount; i++, ia++ ) { for ( int j = 1, ja = 0; j < this.ColumnsCount; j++, ja++ ) { Cell cell = new Cell( array.GetValue( ia, ja ), type ); cell.Behaviors.Add( behavior ); this[i, j] = cell; } } Colorize( ); }
public static DataGridColumn CreateDataGridTemplateColumn(ColumnHeader columnHeader, IStatementValidator statementValidator = null, IConnectionAdapter connectionAdapter = null) { var textBoxFactory = new FrameworkElementFactory(typeof(TextBox)); textBoxFactory.SetValue(TextBoxBase.IsReadOnlyProperty, true); textBoxFactory.SetValue(TextBoxBase.IsReadOnlyCaretVisibleProperty, true); var valueBinding = new Binding($"[{columnHeader.ColumnIndex}]") { Converter = CellValueConverter.Instance }; textBoxFactory.SetBinding(TextBox.TextProperty, valueBinding); var editingDataTemplate = new DataTemplate(typeof(DependencyObject)) { VisualTree = textBoxFactory }; var columnTemplate = new DataGridTemplateColumn { CellTemplateSelector = new ResultSetDataGridTemplateSelector(statementValidator, connectionAdapter, columnHeader), CellEditingTemplate = editingDataTemplate, ClipboardContentBinding = valueBinding }; ApplyColumnStyle(columnTemplate, columnHeader); return columnTemplate; }
void MainForm_Load (object sender, EventArgs e) { _multiSelectCheck.Checked = _listView.MultiSelect; _fullRowSelectCheck.Checked = _listView.FullRowSelect; ColumnHeader columnHeader = new ColumnHeader (); columnHeader.Text = "Name"; columnHeader.Width = 200; _listView.Columns.Add (columnHeader); columnHeader = new ColumnHeader (); columnHeader.Text = "FirstName"; columnHeader.Width = 150; _listView.Columns.Add (columnHeader); columnHeader = new ColumnHeader (); columnHeader.Text = "Address"; columnHeader.Width = 150; _listView.Columns.Add (columnHeader); columnHeader = new ColumnHeader (); columnHeader.Text = "City"; columnHeader.Width = 150; _listView.Columns.Add (columnHeader); for (int i = 0; i < 100; i++) { ListViewItem item = null; if ((i % 2) == 0) { item = _listView.Items.Add ("Short" + i); } else { item = _listView.Items.Add ("Looooooooooooooooooooooooooooooooooooooooooooooooooooong" + i); } item.SubItems.Add ("text"); item.SubItems.Add ("text"); item.SubItems.Add ("text"); } InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
public object this[ColumnHeader key] { get { lock (_lock) { Dictionary<ValueProperties, object> ret; if (!_dynamicColumns.TryGetValue(GetKey(key), out ret)) { return null; } foreach (var o in ret) { if (key.RequiredConstraints.IsSatisfiedBy(o.Key)) { //TODO PLAT-1299: if there are multiple we should probably work out which value to use, but in theory either is fine return o.Value; } } } return null; } }
private static string PrintReports(IList <Report> reports) { Stream stream = new MemoryStream(); StreamWriter streamWriter = new StreamWriter(stream); List <string> globalRow = new List <string>(); foreach (Report report in reports) { string sdimensionHeaders = string.Empty; string smetricHeaders = string.Empty; ColumnHeader header = report.ColumnHeader; List <string> dimensionHeaders = (List <string>)header.Dimensions; List <MetricHeaderEntry> metricHeaders = (List <MetricHeaderEntry>)header.MetricHeader.MetricHeaderEntries; List <ReportRow> rows = (List <ReportRow>)report.Data.Rows; List <string> myrows = new List <string>(); if (rows != null && rows.Count > 0) { for (int k = 0; k < metricHeaders.Count(); k++) { smetricHeaders += metricHeaders[k].Name + sep; } for (int i = 0; i < dimensionHeaders.Count(); i++) { sdimensionHeaders += dimensionHeaders[i] + sep; } if (globalRow.Count() == 0) { myrows.Add(sdimensionHeaders + smetricHeaders); } else { myrows.Add(smetricHeaders); } foreach (ReportRow row in rows) { List <string> dimensions = (List <string>)row.Dimensions; List <DateRangeValues> metrics = (List <DateRangeValues>)row.Metrics; string lined = string.Empty; string liner = string.Empty; for (int i = 0; i < dimensionHeaders.Count() && i < dimensions.Count(); i++) { lined += dimensions[i] + sep; } for (int j = 0; j < metrics.Count(); j++) { DateRangeValues values = metrics[j]; int headers = metricHeaders.Count(); for (int k = 0; k < values.Values.Count() && k < headers; k++) { liner += values.Values[k]; if (k != headers - 1) { liner += sep; } } } if (globalRow.Count() == 0) { myrows.Add(lined + liner); } else { myrows.Add(liner); } } } if (globalRow.Count() == 0) { globalRow.AddRange(myrows); } else { for (int i = 0; i < myrows.Count(); i++) { if (globalRow[i].EndsWith(sep.ToString())) { globalRow[i] += sep + myrows[i]; } else { globalRow[i] += myrows[i]; } } } } StringWriter stringWriter = new StringWriter(); string response = string.Empty; foreach (string item in globalRow) { stringWriter.WriteLine(item); } return(stringWriter.ToString()); }
private static Tuple<string, string> GetKey(ColumnHeader columnHeader) { return Tuple.Create(columnHeader.Configuration, columnHeader.ValueName); }
private void PopulateListView() { var colName = new ColumnHeader { Text = "Name", Width = 80 }; listViewProducts.Columns.Add(colName); var colModel = new ColumnHeader { Text = "Model", Width = 140 }; listViewProducts.Columns.Add(colModel); var colOther = new ColumnHeader { Text = "Other" }; listViewProducts.Columns.Add(colOther); var colSource = new ColumnHeader { Text = "Source" }; listViewProducts.Columns.Add(colSource); foreach (var item in _wrappers) { var group = new ListViewGroup(); var found = false; foreach (ListViewGroup gr in listViewProducts.Groups) { if (gr.Name == item.Product.Category.ToLower()) { found = true; group = gr; break; } } if (!found) { group = new ListViewGroup(item.Product.Category.ToLower(), item.Product.Category); listViewProducts.Groups.Add(group); } var lvi = new ListViewItem(item.Product.Name, group); lvi.Tag = item.Product.Id.ToString(); var atr = item.Product.Properties.Where( x => x.Attribute.ToLower() == "model" || x.Attribute.ToLower() == "tip procesor" || x.Attribute.ToLower() == "putere" || x.Attribute.ToLower() == "volum total" ).Take(2); for (int i = 0; i < 2; i++) { var prop = i < atr.Count() ? atr.ElementAt(i) : null; if (prop != null) { lvi.SubItems.Add(new ListViewItem.ListViewSubItem(lvi, prop.Value)); } else { lvi.SubItems.Add(new ListViewItem.ListViewSubItem(lvi, "")); } } lvi.SubItems.Add(new ListViewItem.ListViewSubItem(lvi, item.Source.ToString())); listViewProducts.Items.Add(lvi); group.Header = $"{item.Product.Category} ({group.Items.Count})"; } }
}// Init internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CEvalAssemWiz2)); this.m_lvPermissions = new System.Windows.Forms.ListView(); this.m_lblLevelEval = new System.Windows.Forms.Label(); this.m_lblHelpPerm = new System.Windows.Forms.Label(); this.m_txtAssemEval = new System.Windows.Forms.TextBox(); this.m_lblHelp = new System.Windows.Forms.Label(); this.m_lblAssemEval = new System.Windows.Forms.Label(); this.m_lblLevelEvalVal = new System.Windows.Forms.Label(); this.m_btnViewPerm = new System.Windows.Forms.Button(); this.m_lvPermissions.Location = ((System.Drawing.Point)(resources.GetObject("m_lvPermissions.Location"))); this.m_lvPermissions.Size = ((System.Drawing.Size)(resources.GetObject("m_lvPermissions.Size"))); this.m_lvPermissions.TabIndex = ((int)(resources.GetObject("m_lvPermissions.TabIndex"))); m_lvPermissions.Name = "Permissions"; this.m_lblLevelEval.Location = ((System.Drawing.Point)(resources.GetObject("m_lblLevelEval.Location"))); this.m_lblLevelEval.Size = ((System.Drawing.Size)(resources.GetObject("m_lblLevelEval.Size"))); this.m_lblLevelEval.TabIndex = ((int)(resources.GetObject("m_lblLevelEval.TabIndex"))); this.m_lblLevelEval.Text = resources.GetString("m_lblLevelEval.Text"); m_lblLevelEval.Name = "PolicyLevelLabel"; this.m_lblHelpPerm.Location = ((System.Drawing.Point)(resources.GetObject("m_lblHelpPerm.Location"))); this.m_lblHelpPerm.Size = ((System.Drawing.Size)(resources.GetObject("m_lblHelpPerm.Size"))); this.m_lblHelpPerm.TabIndex = ((int)(resources.GetObject("m_lblHelpPerm.TabIndex"))); this.m_lblHelpPerm.Text = resources.GetString("m_lblHelpPerm.Text"); m_lblHelpPerm.Name = "HelpPerm"; this.m_txtAssemEval.Location = ((System.Drawing.Point)(resources.GetObject("m_txtAssemEval.Location"))); this.m_txtAssemEval.ReadOnly = true; this.m_txtAssemEval.Size = ((System.Drawing.Size)(resources.GetObject("m_txtAssemEval.Size"))); this.m_txtAssemEval.TabStop = false; this.m_txtAssemEval.Text = resources.GetString("m_txtAssemEval.Text"); m_txtAssemEval.Name = "Assembly"; this.m_lblHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblHelp.Location"))); this.m_lblHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblHelp.Size"))); this.m_lblHelp.TabIndex = ((int)(resources.GetObject("m_lblHelp.TabIndex"))); this.m_lblHelp.Text = resources.GetString("m_lblHelp.Text"); m_lblHelp.Name = "Help"; this.m_lblAssemEval.Location = ((System.Drawing.Point)(resources.GetObject("m_lblAssemEval.Location"))); this.m_lblAssemEval.Size = ((System.Drawing.Size)(resources.GetObject("m_lblAssemEval.Size"))); this.m_lblAssemEval.TabIndex = ((int)(resources.GetObject("m_lblAssemEval.TabIndex"))); this.m_lblAssemEval.Text = resources.GetString("m_lblAssemEval.Text"); m_lblAssemEval.Name = "AssemblyLabel"; this.m_lblLevelEvalVal.Location = ((System.Drawing.Point)(resources.GetObject("m_lblLevelEvalVal.Location"))); this.m_lblLevelEvalVal.Size = ((System.Drawing.Size)(resources.GetObject("m_lblLevelEvalVal.Size"))); this.m_lblLevelEvalVal.TabIndex = ((int)(resources.GetObject("m_lblLevelEvalVal.TabIndex"))); this.m_lblLevelEvalVal.Text = resources.GetString("m_lblLevelEvalVal.Text"); m_lblLevelEvalVal.Name = "PolicyLevel"; this.m_btnViewPerm.Location = ((System.Drawing.Point)(resources.GetObject("m_btnViewPerm.Location"))); this.m_btnViewPerm.Size = ((System.Drawing.Size)(resources.GetObject("m_btnViewPerm.Size"))); this.m_btnViewPerm.TabIndex = ((int)(resources.GetObject("m_btnViewPerm.TabIndex"))); this.m_btnViewPerm.Text = resources.GetString("m_btnViewPerm.Text"); m_btnViewPerm.Name = "ViewPermissions"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblHelpPerm, this.m_lblHelp, this.m_lvPermissions, this.m_btnViewPerm, this.m_txtAssemEval, this.m_lblLevelEvalVal, this.m_lblLevelEval, this.m_lblAssemEval }); // Create an image list of icons we'll be displaying m_ilIcons = new ImageList(); // Keep the order of these consistant with the const's declared at the top // of this class m_ilIcons.Images.Add(System.Drawing.Icon.FromHandle(CResourceStore.GetHIcon("permission_ico"))); m_ilIcons.Images.Add(System.Drawing.Icon.FromHandle(CResourceStore.GetHIcon("permission_ico"))); // Some customizations we've made.... m_lvPermissions.DoubleClick += new EventHandler(onViewPermsClick); m_btnViewPerm.Click += new EventHandler(onViewPermsClick); m_lvPermissions.SmallImageList = m_ilIcons; m_lvPermissions.MultiSelect = false; m_lvPermissions.View = View.Details; m_lvPermissions.HeaderStyle = ColumnHeaderStyle.None; ColumnHeader ch = new ColumnHeader(); ch.Text = "Permission"; ch.Width = ((System.Drawing.Size)(resources.GetObject("m_lvPermissions.Size"))).Width - 17; m_lvPermissions.Columns.Add(ch); m_txtAssemEval.BorderStyle = BorderStyle.None; return(1); }// InsertPropSheetPageControls
private void RebuildList() { listViewSolutions.Items.Clear(); UpdatePreview(); listViewProperties.Items.Clear(); listViewSolutions.Columns.Clear(); _originalColors = new Color[_solver.Solutions.Count]; var solutionNumberColumn = new ColumnHeader { Text = "#", Width = 25 }; listViewSolutions.Columns.Add(solutionNumberColumn); int i; for (i = 0; i < _solver.Comparer.Criteria.Count; i++) { var columnHeader = new ColumnHeader { Text = _solver.Comparer.Criteria[i].Field.Name, TextAlign = HorizontalAlignment.Center, Width = 100 }; listViewSolutions.Columns.Add(columnHeader); } // rebuild the list of solutions Solver.Solution prevSolution = null; var prevColor = _solutionColour1; i = 0; foreach (var solution in _solver.Solutions) { // make a list of data for each entry var data = new string[_solver.Comparer.Criteria.Count + 1]; data[0] = i.ToString(); // for each field we're using for (var j = 0; j < _solver.Comparer.Criteria.Count; j++) { // get a string representing the value for that criteria in the solution data[j + 1] = solution.FieldValueToString(_solver.Comparer.Criteria[j].FieldIndex); } // create the item var item = new ListViewItem(data) { Tag = solution, ImageIndex = -1 }; // make the first result white if (prevSolution == null) { prevColor = _solutionColour1; } // else if the following solution is different (by the current criteria) else if (solution.CompareTo(prevSolution, _solver.Comparer) != 0) { // switch colours prevColor = prevColor == _solutionColour1 ? _solutionColour2 : _solutionColour1; } item.BackColor = prevColor; _originalColors[i++] = item.BackColor; // add the item to the list listViewSolutions.Items.Add(item); prevSolution = solution; } }
// -- privates private void InitListView() { listView1.FullRowSelect = true; //listView1.GridLines = true; listView1.Sorting = SortOrder.None; listView1.View = System.Windows.Forms.View.Details; // ヘッダーのテキストだけセンタリング、実項目は右寄せしたいのだが、これをするには // オーナードローにする必要がある。面倒くさいので、ヘッダーのテキストにpaddingしておく。 // またヘッダーの1列目のTextAlignは無視される。これは.NET FrameworkのListViewの昔からあるバグ。(仕様?) // MultiPVの値(1,…) var ranking = new ColumnHeader(); ranking.Text = "R"; ranking.Width = 40; ranking.TextAlign = HorizontalAlignment.Center; var thinking_time = new ColumnHeader(); thinking_time.Text = "経過時間"; thinking_time.Width = 140; thinking_time.TextAlign = HorizontalAlignment.Center; var depth = new ColumnHeader(); depth.Text = "深さ "; depth.Width = 100; depth.TextAlign = HorizontalAlignment.Right; var node = new ColumnHeader(); node.Text = "探索局面数"; node.Width = 180; node.TextAlign = HorizontalAlignment.Right; var eval = new ColumnHeader(); eval.Text = "評価値 "; eval.Width = 200; eval.TextAlign = HorizontalAlignment.Right; // 評価値のScoreBound var score_bound = new ColumnHeader(); score_bound.Text = "+-"; score_bound.Width = 50; score_bound.TextAlign = HorizontalAlignment.Center; var pv = new ColumnHeader(); pv.Text = "読み筋"; pv.Width = 0; pv.TextAlign = HorizontalAlignment.Left; // 読み筋の幅は残り全部。UpdatePvWidth()で調整される。 var header = new[] { ranking, thinking_time, depth, node, eval, score_bound, pv }; listView1.Columns.AddRange(header); //listView1.AutoResizeColumns( ColumnHeaderAutoResizeStyle.ColumnContent); // headerとcontentの文字長さを考慮して、横幅が自動調整されて水平スクロールバーで移動してくれるといいのだが、うまくいかない。よくわからない。 foreach (var index in All.Int(5)) { int w1 = listView1.Columns[index].Width; int w2 = TheApp.app.Config.ConsiderationColumnWidth[index]; listView1.Columns[index].Width = w2 == 0 ? w1 : w2; // w2が初期化直後の値なら、採用しない。 // これだと幅を0にすると保存されなくなってしまうのか…。そうか…。保存するときに1にしておくべきなのか…。 } // CPU同士の対局でEngineConsiderationControlが2つあるときに、もう片側にも通知する。 TheApp.app.Config.ConsiderationColumnWidth.AddPropertyChangedHandler((args) => { // 単純assignか。 if (args.IsAssign() && 0 <= args.NewStartIndex && args.NewStartIndex <= 5) { listView1.Columns[args.NewStartIndex].Width = (int)args.NewItems[0]; } }); }
public FormInvoke() { InitializeComponent(); //this.listView1.BackColor = Color.Blue; this.listView1.View = View.Details; this.listView1.GridLines = true; this.listView2.GridLines = true; ColumnHeader ch = new ColumnHeader(); ch.Text = "序号"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "板件名称"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "颜色"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "材料"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "封边面1"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "封边面2"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "封边面3"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "封边面4"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "成品长"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "成品宽"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "成品厚"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "面5加工码"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "面6加工码"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "开料长"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "开料宽"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "是否有水平孔"; ch.TextAlign = HorizontalAlignment.Left; this.listView1.Columns.Add(ch); }
/// <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.label1 = new System.Windows.Forms.Label(); this.liviLanguages = 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.btnCancel = new System.Windows.Forms.Button(); this.btnOk = new System.Windows.Forms.Button(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(12, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(104, 13); this.label1.TabIndex = 0; this.label1.Text = "Sprache auswählen:"; // // liviLanguages // this.liviLanguages.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2 }); this.liviLanguages.FullRowSelect = true; this.liviLanguages.GridLines = true; this.liviLanguages.HideSelection = false; this.liviLanguages.Location = new System.Drawing.Point(15, 25); this.liviLanguages.MultiSelect = false; this.liviLanguages.Name = "liviLanguages"; this.liviLanguages.Size = new System.Drawing.Size(300, 140); this.liviLanguages.TabIndex = 1; this.liviLanguages.UseCompatibleStateImageBehavior = false; this.liviLanguages.View = System.Windows.Forms.View.Details; this.liviLanguages.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.liviLanguages_ColumnClick); this.liviLanguages.DoubleClick += new System.EventHandler(this.liviLanguages_DoubleClick); // // columnHeader1 // this.columnHeader1.Text = "Kürzel"; this.columnHeader1.Width = 51; // // columnHeader2 // this.columnHeader2.Text = "Beschreibung"; this.columnHeader2.Width = 245; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(195, 171); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(120, 23); this.btnCancel.TabIndex = 3; this.btnCancel.Text = "Abbrechen"; this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // btnOk // this.btnOk.Location = new System.Drawing.Point(69, 171); this.btnOk.Name = "btnOk"; this.btnOk.Size = new System.Drawing.Size(120, 23); this.btnOk.TabIndex = 2; this.btnOk.Text = "OK"; this.btnOk.UseVisualStyleBackColor = true; this.btnOk.Click += new System.EventHandler(this.btnOk_Click); // // SelectLanguage // this.AcceptButton = this.btnOk; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(329, 202); this.Controls.Add(this.btnOk); this.Controls.Add(this.btnCancel); this.Controls.Add(this.liviLanguages); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "SelectLanguage"; this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "### - SelectLanguage"; this.Load += new System.EventHandler(this.SelectProjectLanguage_Load); this.ResumeLayout(false); this.PerformLayout(); }
private void button1_Click(object sender, EventArgs e) { string message = "Z uwagi na fakt, że tworzenie całego systemu pod kątem oceny nie przyniosłoby rezultatów (wszystkie funkcje kluczowe z punktu widzenia wymogów projektu zostały już zaimplementowane), twórcy postanowili pozostawić sobie zadanie zaprojektowania działania tego formularza do dalszej, samodzielnej już zabawy z .NET. To, co zostało zaprezentowane tutaj jest wyłącznie wizualną prezentacją potencjalnych funkcji SOKu."; string caption = "To wciąż wersja Alpha :("; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message, caption, buttons2); Form przegladKonferencji = new Form(); przegladKonferencji.Height = 610; przegladKonferencji.Width = 773; #region layout ListBox ListViewConferece = new System.Windows.Forms.ListBox(); ColumnHeader Number = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader SubjectOfConference = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader Date = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); Button ShowDetails = new System.Windows.Forms.Button(); ComboBox SortComboBox1 = new System.Windows.Forms.ComboBox(); Button SortBtn = new System.Windows.Forms.Button(); TableLayoutPanel tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanel1.SuspendLayout(); przegladKonferencji.SuspendLayout(); ListViewConferece.FormattingEnabled = true; ListViewConferece.ItemHeight = 18; ListViewConferece.Location = new System.Drawing.Point(128, 121); ListViewConferece.Name = "listBoxPokaz"; ListViewConferece.Size = new System.Drawing.Size(560, 337); ListViewConferece.TabIndex = 5; // // ListViewConferece // //ListViewConferece.AccessibleRole = System.Windows.Forms.AccessibleRole.None; //ListViewConferece.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { //Number, //SubjectOfConference, //}); //ListViewConferece.GridLines = true; //ListViewConferece.HideSelection = false; //ListViewConferece.Location = new System.Drawing.Point(128, 121); //ListViewConferece.Name = "ListViewConferece"; //ListViewConferece.Size = new System.Drawing.Size(560, 337); //ListViewConferece.TabIndex = 5; //ListViewConferece.UseCompatibleStateImageBehavior = false; //ListViewConferece.View = System.Windows.Forms.View.Details; //ListViewConferece.SelectedIndexChanged += new System.EventHandler(ListViewConferece_SelectedIndexChanged); // // Number // Number.Text = "Nr"; Number.Width = 30; // // SubjectOfConference // SubjectOfConference.Text = "Temat Konferencji"; SubjectOfConference.Width = 400; // // Date // Date.Text = "Data Konferencji"; Date.Width = 125; // // ShowDetails // ShowDetails.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); ShowDetails.Location = new System.Drawing.Point(512, 489); ShowDetails.Name = "ShowDetails"; ShowDetails.Size = new System.Drawing.Size(176, 41); ShowDetails.TabIndex = 4; ShowDetails.Text = "Pokaż szczegóły"; ShowDetails.UseVisualStyleBackColor = true; // // SortComboBox1 // SortComboBox1.Anchor = System.Windows.Forms.AnchorStyles.Left; SortComboBox1.FormattingEnabled = true; SortComboBox1.Items.AddRange(new object[] { "data rosnąco", "data malejąco", "alfabetycznie" }); SortComboBox1.Location = new System.Drawing.Point(128, 92); SortComboBox1.Name = "SortComboBox1"; SortComboBox1.Size = new System.Drawing.Size(159, 24); SortComboBox1.TabIndex = 2; SortComboBox1.SelectedIndexChanged += new System.EventHandler(comboBox1_SelectedIndexChanged); // // SortBtn // SortBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); SortBtn.Location = new System.Drawing.Point(25, 92); SortBtn.Name = "SortBtn"; SortBtn.Size = new System.Drawing.Size(97, 23); SortBtn.TabIndex = 0; SortBtn.Text = "Sortuj"; SortBtn.UseVisualStyleBackColor = true; // // tableLayoutPanel1 // tableLayoutPanel1.ColumnCount = 3; tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.59808F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 74.90092F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.586526F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 95F)); tableLayoutPanel1.Controls.Add(SortBtn, 0, 2); tableLayoutPanel1.Controls.Add(SortComboBox1, 1, 2); tableLayoutPanel1.Controls.Add(ShowDetails, 1, 4); tableLayoutPanel1.Controls.Add(ListViewConferece, 1, 3); tableLayoutPanel1.Location = new System.Drawing.Point(2, 1); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 5; tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 23.76238F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 76.23763F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 368F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 78F)); tableLayoutPanel1.Size = new System.Drawing.Size(757, 565); tableLayoutPanel1.TabIndex = 0; //tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(tableLayoutPanel1_Paint); // // PrzeglądKonferencji // przegladKonferencji.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); przegladKonferencji.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; przegladKonferencji.ClientSize = new System.Drawing.Size(755, 563); przegladKonferencji.Controls.Add(ListViewConferece); przegladKonferencji.Controls.Add(ShowDetails); przegladKonferencji.Controls.Add(ShowDetails); przegladKonferencji.Controls.Add(SortComboBox1); przegladKonferencji.Controls.Add(SortBtn); przegladKonferencji.Controls.Add(tableLayoutPanel1); przegladKonferencji.Name = "PrzeglądKonferencji"; przegladKonferencji.Text = "Przegląd Konferencji"; przegladKonferencji.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; //przegladKonferencji.Load += new System.EventHandler(this.FormularzTestowy_Load); tableLayoutPanel1.ResumeLayout(false); przegladKonferencji.ResumeLayout(false); przegladKonferencji.PerformLayout(); przegladKonferencji.ShowDialog(); #endregion void textBox1_TextChanged(object sender2, EventArgs e2) { } //void tableLayoutPanel1_Paint(object sender2, PaintEventArgs e2) //{ //} void listBox1_SelectedIndexChanged(object sender2, EventArgs e2) { } void comboBox1_SelectedIndexChanged(object sender2, EventArgs e2) { } void FormularzTestowy_Load(object sender2, EventArgs e2) { } void listView1_SelectedIndexChanged(object sender2, EventArgs e2) { } void numericUpDown1_ValueChanged(object sender2, EventArgs e2) { } }
private string generateColumnHash(ListView listView, ColumnHeader header) { return(string.Format("{0}_{1}", listView.Name, header.Text)); }
private void InitializeComponent() { this.OKBtn = new Button(); this.CancelBtn = new Button(); this.Splitter = new SplitContainer(); this.ItemList = new ListView(); this.NameHdr = new ColumnHeader(); this.InfoHdr = new ColumnHeader(); this.BrowserPanel = new Panel(); this.Browser = new WebBrowser(); this.NamePanel = new Panel(); this.NameBox = new TextBox(); this.NameLbl = new Label(); this.Splitter.Panel1.SuspendLayout(); this.Splitter.Panel2.SuspendLayout(); this.Splitter.SuspendLayout(); this.BrowserPanel.SuspendLayout(); this.NamePanel.SuspendLayout(); base.SuspendLayout(); this.OKBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.OKBtn.DialogResult = System.Windows.Forms.DialogResult.OK; this.OKBtn.Location = new Point(549, 354); this.OKBtn.Name = "OKBtn"; this.OKBtn.Size = new System.Drawing.Size(75, 23); this.OKBtn.TabIndex = 0; this.OKBtn.Text = "OK"; this.OKBtn.UseVisualStyleBackColor = true; this.CancelBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.CancelBtn.Location = new Point(630, 354); this.CancelBtn.Name = "CancelBtn"; this.CancelBtn.Size = new System.Drawing.Size(75, 23); this.CancelBtn.TabIndex = 1; this.CancelBtn.Text = "Cancel"; this.CancelBtn.UseVisualStyleBackColor = true; this.Splitter.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.Splitter.Location = new Point(12, 12); this.Splitter.Name = "Splitter"; this.Splitter.Panel1.Controls.Add(this.ItemList); this.Splitter.Panel1.Controls.Add(this.NamePanel); this.Splitter.Panel2.Controls.Add(this.BrowserPanel); this.Splitter.Size = new System.Drawing.Size(693, 336); this.Splitter.SplitterDistance = 330; this.Splitter.TabIndex = 5; ColumnHeader[] nameHdr = new ColumnHeader[] { this.NameHdr, this.InfoHdr }; this.ItemList.Columns.AddRange(nameHdr); this.ItemList.Dock = DockStyle.Fill; this.ItemList.FullRowSelect = true; this.ItemList.HideSelection = false; this.ItemList.Location = new Point(0, 27); this.ItemList.MultiSelect = false; this.ItemList.Name = "ItemList"; this.ItemList.Size = new System.Drawing.Size(330, 309); this.ItemList.Sorting = SortOrder.Ascending; this.ItemList.TabIndex = 1; this.ItemList.UseCompatibleStateImageBehavior = false; this.ItemList.View = View.Details; this.ItemList.SelectedIndexChanged += new EventHandler(this.ItemList_SelectedIndexChanged); this.ItemList.DoubleClick += new EventHandler(this.ItemList_DoubleClick); this.NameHdr.Text = "Artifact"; this.NameHdr.Width = 150; this.InfoHdr.Text = "Info"; this.InfoHdr.Width = 150; this.BrowserPanel.BorderStyle = BorderStyle.FixedSingle; this.BrowserPanel.Controls.Add(this.Browser); this.BrowserPanel.Dock = DockStyle.Fill; this.BrowserPanel.Location = new Point(0, 0); this.BrowserPanel.Name = "BrowserPanel"; this.BrowserPanel.Size = new System.Drawing.Size(359, 336); this.BrowserPanel.TabIndex = 0; this.Browser.AllowWebBrowserDrop = false; this.Browser.Dock = DockStyle.Fill; this.Browser.IsWebBrowserContextMenuEnabled = false; this.Browser.Location = new Point(0, 0); this.Browser.MinimumSize = new System.Drawing.Size(20, 20); this.Browser.Name = "Browser"; this.Browser.ScriptErrorsSuppressed = true; this.Browser.Size = new System.Drawing.Size(357, 334); this.Browser.TabIndex = 0; this.Browser.WebBrowserShortcutsEnabled = false; this.NamePanel.Controls.Add(this.NameBox); this.NamePanel.Controls.Add(this.NameLbl); this.NamePanel.Dock = DockStyle.Top; this.NamePanel.Location = new Point(0, 0); this.NamePanel.Name = "NamePanel"; this.NamePanel.Size = new System.Drawing.Size(330, 27); this.NamePanel.TabIndex = 0; this.NameBox.Location = new Point(47, 3); this.NameBox.Name = "NameBox"; this.NameBox.Size = new System.Drawing.Size(280, 20); this.NameBox.TabIndex = 1; this.NameBox.TextChanged += new EventHandler(this.NameBox_TextChanged); this.NameLbl.AutoSize = true; this.NameLbl.Location = new Point(3, 6); this.NameLbl.Name = "NameLbl"; this.NameLbl.Size = new System.Drawing.Size(38, 13); this.NameLbl.TabIndex = 0; this.NameLbl.Text = "Name:"; base.AcceptButton = this.OKBtn; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.CancelButton = this.CancelBtn; base.ClientSize = new System.Drawing.Size(717, 389); base.Controls.Add(this.Splitter); base.Controls.Add(this.CancelBtn); base.Controls.Add(this.OKBtn); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "ArtifactSelectForm"; base.ShowIcon = false; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Select an Artifact"; this.Splitter.Panel1.ResumeLayout(false); this.Splitter.Panel2.ResumeLayout(false); this.Splitter.ResumeLayout(false); this.BrowserPanel.ResumeLayout(false); this.NamePanel.ResumeLayout(false); this.NamePanel.PerformLayout(); base.ResumeLayout(false); }
private void on_files_mouse_up(object sender, MouseEventArgs e) { if (ConvertProcessor.in_process || ModificationWatchdog.in_process) { return; } ; if (MouseButtons.Right == e.Button) { ColumnHeader click_header = null; Point click_point = e.Location; click_point.X += GetScrollPos(lv_files.Handle, SB_HORZ); foreach (ColumnHeader hdr in lv_files.Columns) { if (hdr.Width > click_point.X) { click_header = hdr; break; } ; click_point.X -= hdr.Width; } ; if (null != click_header) { m_sel_header = click_header; m_sel_items.Clear(); m_sel_subitems.Clear(); foreach (ListViewItem ld in lv_files.SelectedItems) { m_sel_items.Add(ld); m_sel_subitems.Add(ld.SubItems[m_sel_header.Index]); } ; if (1 > click_header.Index) { b_src_change_file.Enabled = b_src_file_folder.Enabled = b_src_options.Enabled = b_src_convert_sel.Enabled = b_src_enabled.Enabled = b_src_remove_files.Enabled = 0 < m_sel_subitems.Count; b_src_viewer_open.Enabled = 1 == m_sel_subitems.Count; b_src_enabled.Checked = (m_sel_items[0].Tag as conv_core.cImageFile).enabled; b_src_convert_sel.Enabled = b_src_convert_sel.Enabled && !ConvertProcessor.in_process; cm_source_menu.Show(lv_files, e.Location); } else if (0 < m_sel_subitems.Count) { b_format_enable.Checked = (m_sel_subitems[0].Tag as conv_core.cImageFile).enabled; cm_format_menu.Show(lv_files, e.Location); } ; } ; } ; }
private void b_export_list_Click(object sender, EventArgs e) { if (ConvertProcessor.in_process) { return; } ; ExportersListForm form = new ExportersListForm(); for (int op = 0; conv_core.workbench.formats.count > op; op++) { conv_core.cFormat format = conv_core.workbench.formats[op]; if (format.has_writer) { form.m_all_items.Add(format.name); } ; } ; foreach (ColumnHeader hdr in m_formats) { form.m_selected_items.Add(hdr.Text); } ; switch (form.ShowDialog(this)) { case DialogResult.OK: { int hdr_id = 0; while (m_formats.Count > hdr_id) { ColumnHeader hdr = m_formats[hdr_id]; if (0 > form.m_selected_items.FindIndex(delegate(string str){ return(hdr.Text == str); })) { m_formats.Remove(hdr); foreach (ListViewItem li in lv_files.Items) { li.SubItems.RemoveAt(hdr.Index); } ; lv_files.Columns.Remove(hdr); t_mod.Enabled = true; } else { hdr_id++; }; } ; foreach (string fmt in form.m_selected_items) { if (0 > m_formats.FindIndex(delegate(ColumnHeader hdr) { return(fmt == hdr.Text); })) { conv_core.cFormat format = conv_core.workbench.formats[fmt]; foreach (ListViewItem li in lv_files.Items) { ListViewItem.ListViewSubItem lsi = li.SubItems.Add( Path.GetFileNameWithoutExtension(li.Text) + "." + format.ext ); lsi.Tag = new conv_core.cImageFile(t_base_dir.Text + "\\" + lsi.Text); } ; add_format(fmt); t_mod.Enabled = true; } ; } ; } break; } ; form.Dispose(); }
void LocalizeListView(string formName, string formClassName, ListView lv) { if (null == formName || null == lv || string.IsNullOrEmpty(lv.Name)) { return; } if (lv.Columns.Count < 1) { return; } for (int i = 0; i < 2; i++) { // First look at this control, in case this is a derived class, then get list view parent so we have a place to look for ControlHeader variables Control ctrl = i < 1 ? lv : lv.Parent; if (null != ctrl) { // Get list of fields (variables) that the ctrl class includes FieldInfo[] fields = ctrl.GetType().GetFields(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); { // Find all the ColumnHeader fields in the ctrl class and build a dictionary of the field value and its field name var header_fields = new Dictionary <ColumnHeader, string>(); for (int j = 0, length = fields.Length; j < length; j++) { FieldInfo fi = fields[j]; if (null != fi) { var ch = fi.GetValue(ctrl) as ColumnHeader; if (null != ch) { header_fields.Add(ch, fi.Name); } } } if (header_fields.Count > 0) { // Iterate column header list for (int j = 0, count = lv.Columns.Count; j < count; j++) { ColumnHeader header = lv.Columns[j]; // If this header item is not null and the text is not empty and the header object is in the control dictionary string control_field_name; if (null != header && !string.IsNullOrEmpty(header.Text) && header_fields.TryGetValue(header, out control_field_name) && !string.IsNullOrEmpty(control_field_name)) { // Look up the localized string for this column header item string key = formName + "::" + control_field_name + "::Text"; string value; if (m_dialog_list.TryGetValue(key, out value)) { header.Text = value; } else if (!string.IsNullOrEmpty(formClassName)) { key = formName + "::" + formClassName + "::" + control_field_name + "::Text"; if (m_dialog_list.TryGetValue(key, out value)) { header.Text = value; } else { key = formClassName + "::" + control_field_name + "::Text"; if (m_dialog_list.TryGetValue(key, out value)) { header.Text = value; } } } } } } } } } }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(EGenRptPara)); this.btnGen = new Button(); this.grpbchart = new GroupBox(); this.chkchart9 = new CheckBox(); this.label2 = new Label(); this.txtprice_co2 = new TextBox(); this.label3 = new Label(); this.chkchart7 = new CheckBox(); this.chkchart6 = new CheckBox(); this.chkchart8 = new CheckBox(); this.label39 = new Label(); this.txtprice_elec = new TextBox(); this.label31 = new Label(); this.label40 = new Label(); this.txtco2_elec = new TextBox(); this.label30 = new Label(); this.chkchart1 = new CheckBox(); this.chkchart3 = new CheckBox(); this.chkchart4 = new CheckBox(); this.chkchart2 = new CheckBox(); this.chkchart5 = new CheckBox(); this.groupBox2 = new GroupBox(); this.btndel = new Button(); this.btnAdd = new Button(); this.grouplist = new ListView(); this.gptype = new ColumnHeader(); this.gpname = new ColumnHeader(); this.gbxInfo = new GroupBox(); this.lbtitle = new Label(); this.label1 = new Label(); this.dtpbegin = new DateTimePicker(); this.txttitle = new TextBox(); this.label14 = new Label(); this.lbwriter = new Label(); this.label15 = new Label(); this.dtptime = new DateTimePicker(); this.cboperiod = new ComboBox(); this.txtwrite = new TextBox(); this.label29 = new Label(); this.tbduration = new TextBox(); this.cboduration = new ComboBox(); this.pbLoading = new PictureBox(); this.grpbchart.SuspendLayout(); this.groupBox2.SuspendLayout(); this.gbxInfo.SuspendLayout(); ((ISupportInitialize)this.pbLoading).BeginInit(); base.SuspendLayout(); this.btnGen.BackColor = Color.Gainsboro; componentResourceManager.ApplyResources(this.btnGen, "btnGen"); this.btnGen.Name = "btnGen"; this.btnGen.UseVisualStyleBackColor = false; this.btnGen.Click += new System.EventHandler(this.btnGen_Click); this.grpbchart.Controls.Add(this.chkchart9); this.grpbchart.Controls.Add(this.label2); this.grpbchart.Controls.Add(this.txtprice_co2); this.grpbchart.Controls.Add(this.label3); this.grpbchart.Controls.Add(this.chkchart7); this.grpbchart.Controls.Add(this.chkchart6); this.grpbchart.Controls.Add(this.chkchart8); this.grpbchart.Controls.Add(this.label39); this.grpbchart.Controls.Add(this.txtprice_elec); this.grpbchart.Controls.Add(this.label31); this.grpbchart.Controls.Add(this.label40); this.grpbchart.Controls.Add(this.txtco2_elec); this.grpbchart.Controls.Add(this.label30); this.grpbchart.Controls.Add(this.chkchart1); this.grpbchart.Controls.Add(this.chkchart3); this.grpbchart.Controls.Add(this.chkchart4); this.grpbchart.Controls.Add(this.chkchart2); this.grpbchart.Controls.Add(this.chkchart5); componentResourceManager.ApplyResources(this.grpbchart, "grpbchart"); this.grpbchart.ForeColor = Color.FromArgb(20, 73, 160); this.grpbchart.Name = "grpbchart"; this.grpbchart.TabStop = false; componentResourceManager.ApplyResources(this.chkchart9, "chkchart9"); this.chkchart9.ForeColor = Color.Black; this.chkchart9.Name = "chkchart9"; this.chkchart9.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.label2, "label2"); this.label2.ForeColor = Color.Black; this.label2.Name = "label2"; componentResourceManager.ApplyResources(this.txtprice_co2, "txtprice_co2"); this.txtprice_co2.ForeColor = Color.Black; this.txtprice_co2.Name = "txtprice_co2"; this.txtprice_co2.KeyPress += new KeyPressEventHandler(this.num_KeyPress); componentResourceManager.ApplyResources(this.label3, "label3"); this.label3.ForeColor = Color.Black; this.label3.Name = "label3"; componentResourceManager.ApplyResources(this.chkchart7, "chkchart7"); this.chkchart7.ForeColor = Color.Black; this.chkchart7.Name = "chkchart7"; this.chkchart7.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.chkchart6, "chkchart6"); this.chkchart6.ForeColor = Color.Black; this.chkchart6.Name = "chkchart6"; this.chkchart6.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.chkchart8, "chkchart8"); this.chkchart8.ForeColor = Color.Black; this.chkchart8.Name = "chkchart8"; this.chkchart8.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.label39, "label39"); this.label39.ForeColor = Color.Black; this.label39.Name = "label39"; componentResourceManager.ApplyResources(this.txtprice_elec, "txtprice_elec"); this.txtprice_elec.ForeColor = Color.Black; this.txtprice_elec.Name = "txtprice_elec"; this.txtprice_elec.KeyPress += new KeyPressEventHandler(this.num_KeyPress); componentResourceManager.ApplyResources(this.label31, "label31"); this.label31.ForeColor = Color.Black; this.label31.Name = "label31"; componentResourceManager.ApplyResources(this.label40, "label40"); this.label40.ForeColor = Color.Black; this.label40.Name = "label40"; componentResourceManager.ApplyResources(this.txtco2_elec, "txtco2_elec"); this.txtco2_elec.ForeColor = Color.Black; this.txtco2_elec.Name = "txtco2_elec"; this.txtco2_elec.KeyPress += new KeyPressEventHandler(this.num_KeyPress); componentResourceManager.ApplyResources(this.label30, "label30"); this.label30.ForeColor = Color.Black; this.label30.Name = "label30"; componentResourceManager.ApplyResources(this.chkchart1, "chkchart1"); this.chkchart1.ForeColor = Color.Black; this.chkchart1.Name = "chkchart1"; this.chkchart1.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.chkchart3, "chkchart3"); this.chkchart3.ForeColor = Color.Black; this.chkchart3.Name = "chkchart3"; this.chkchart3.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.chkchart4, "chkchart4"); this.chkchart4.ForeColor = Color.Black; this.chkchart4.Name = "chkchart4"; this.chkchart4.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.chkchart2, "chkchart2"); this.chkchart2.ForeColor = Color.Black; this.chkchart2.Name = "chkchart2"; this.chkchart2.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.chkchart5, "chkchart5"); this.chkchart5.ForeColor = Color.Black; this.chkchart5.Name = "chkchart5"; this.chkchart5.UseVisualStyleBackColor = true; this.groupBox2.Controls.Add(this.btndel); this.groupBox2.Controls.Add(this.btnAdd); this.groupBox2.Controls.Add(this.grouplist); componentResourceManager.ApplyResources(this.groupBox2, "groupBox2"); this.groupBox2.ForeColor = Color.FromArgb(20, 73, 160); this.groupBox2.Name = "groupBox2"; this.groupBox2.TabStop = false; this.btndel.BackColor = Color.Gainsboro; componentResourceManager.ApplyResources(this.btndel, "btndel"); this.btndel.ForeColor = SystemColors.ControlText; this.btndel.Name = "btndel"; this.btndel.UseVisualStyleBackColor = false; this.btndel.Click += new System.EventHandler(this.btndel_Click); this.btnAdd.BackColor = Color.Gainsboro; componentResourceManager.ApplyResources(this.btnAdd, "btnAdd"); this.btnAdd.ForeColor = SystemColors.ControlText; this.btnAdd.Name = "btnAdd"; this.btnAdd.UseVisualStyleBackColor = false; this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); this.grouplist.Columns.AddRange(new ColumnHeader[] { this.gptype, this.gpname }); componentResourceManager.ApplyResources(this.grouplist, "grouplist"); this.grouplist.FullRowSelect = true; this.grouplist.HideSelection = false; this.grouplist.Name = "grouplist"; this.grouplist.UseCompatibleStateImageBehavior = false; this.grouplist.View = View.Details; this.grouplist.SelectedIndexChanged += new System.EventHandler(this.grouplist_SelectedIndexChanged); componentResourceManager.ApplyResources(this.gptype, "gptype"); componentResourceManager.ApplyResources(this.gpname, "gpname"); this.gbxInfo.Controls.Add(this.lbtitle); this.gbxInfo.Controls.Add(this.label1); this.gbxInfo.Controls.Add(this.dtpbegin); this.gbxInfo.Controls.Add(this.txttitle); this.gbxInfo.Controls.Add(this.label14); this.gbxInfo.Controls.Add(this.lbwriter); this.gbxInfo.Controls.Add(this.label15); this.gbxInfo.Controls.Add(this.dtptime); this.gbxInfo.Controls.Add(this.cboperiod); this.gbxInfo.Controls.Add(this.txtwrite); this.gbxInfo.Controls.Add(this.label29); this.gbxInfo.Controls.Add(this.tbduration); this.gbxInfo.Controls.Add(this.cboduration); componentResourceManager.ApplyResources(this.gbxInfo, "gbxInfo"); this.gbxInfo.ForeColor = Color.FromArgb(20, 73, 160); this.gbxInfo.Name = "gbxInfo"; this.gbxInfo.TabStop = false; componentResourceManager.ApplyResources(this.lbtitle, "lbtitle"); this.lbtitle.ForeColor = Color.Black; this.lbtitle.Name = "lbtitle"; componentResourceManager.ApplyResources(this.label1, "label1"); this.label1.ForeColor = Color.Black; this.label1.Name = "label1"; componentResourceManager.ApplyResources(this.dtpbegin, "dtpbegin"); this.dtpbegin.Format = DateTimePickerFormat.Custom; this.dtpbegin.Name = "dtpbegin"; this.dtpbegin.ShowUpDown = true; this.dtpbegin.ValueChanged += new System.EventHandler(this.dtpbegin_ValueChanged); componentResourceManager.ApplyResources(this.txttitle, "txttitle"); this.txttitle.Name = "txttitle"; this.txttitle.KeyPress += new KeyPressEventHandler(this.txttitle_KeyPress); componentResourceManager.ApplyResources(this.label14, "label14"); this.label14.ForeColor = Color.Black; this.label14.Name = "label14"; componentResourceManager.ApplyResources(this.lbwriter, "lbwriter"); this.lbwriter.ForeColor = Color.Black; this.lbwriter.Name = "lbwriter"; componentResourceManager.ApplyResources(this.label15, "label15"); this.label15.ForeColor = Color.Black; this.label15.Name = "label15"; componentResourceManager.ApplyResources(this.dtptime, "dtptime"); this.dtptime.Format = DateTimePickerFormat.Custom; this.dtptime.Name = "dtptime"; this.dtptime.ShowUpDown = true; this.cboperiod.DropDownStyle = ComboBoxStyle.DropDownList; componentResourceManager.ApplyResources(this.cboperiod, "cboperiod"); this.cboperiod.FormattingEnabled = true; this.cboperiod.Items.AddRange(new object[] { componentResourceManager.GetString("cboperiod.Items"), componentResourceManager.GetString("cboperiod.Items1"), componentResourceManager.GetString("cboperiod.Items2"), componentResourceManager.GetString("cboperiod.Items3") }); this.cboperiod.Name = "cboperiod"; this.cboperiod.SelectedIndexChanged += new System.EventHandler(this.cboperiod_SelectedIndexChanged); componentResourceManager.ApplyResources(this.txtwrite, "txtwrite"); this.txtwrite.Name = "txtwrite"; this.txtwrite.KeyPress += new KeyPressEventHandler(this.txtwrite_KeyPress); componentResourceManager.ApplyResources(this.label29, "label29"); this.label29.ForeColor = Color.Black; this.label29.Name = "label29"; componentResourceManager.ApplyResources(this.tbduration, "tbduration"); this.tbduration.Name = "tbduration"; this.tbduration.KeyPress += new KeyPressEventHandler(this.int_KeyPress); this.cboduration.DropDownStyle = ComboBoxStyle.DropDownList; componentResourceManager.ApplyResources(this.cboduration, "cboduration"); this.cboduration.FormattingEnabled = true; this.cboduration.Items.AddRange(new object[] { componentResourceManager.GetString("cboduration.Items"), componentResourceManager.GetString("cboduration.Items1"), componentResourceManager.GetString("cboduration.Items2"), componentResourceManager.GetString("cboduration.Items3"), componentResourceManager.GetString("cboduration.Items4"), componentResourceManager.GetString("cboduration.Items5"), componentResourceManager.GetString("cboduration.Items6") }); this.cboduration.Name = "cboduration"; this.pbLoading.BackColor = Color.Transparent; componentResourceManager.ApplyResources(this.pbLoading, "pbLoading"); this.pbLoading.Image = Resources.processing; this.pbLoading.Name = "pbLoading"; this.pbLoading.TabStop = false; base.AutoScaleMode = AutoScaleMode.None; this.BackColor = Color.WhiteSmoke; base.Controls.Add(this.btnGen); base.Controls.Add(this.grpbchart); base.Controls.Add(this.groupBox2); base.Controls.Add(this.gbxInfo); base.Controls.Add(this.pbLoading); componentResourceManager.ApplyResources(this, "$this"); base.Name = "EGenRptPara"; this.grpbchart.ResumeLayout(false); this.grpbchart.PerformLayout(); this.groupBox2.ResumeLayout(false); this.gbxInfo.ResumeLayout(false); this.gbxInfo.PerformLayout(); ((ISupportInitialize)this.pbLoading).EndInit(); base.ResumeLayout(false); }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmControl)); this.listVerses = new ListView(); this.columnHeader1 = new ColumnHeader(); this.columnHeader2 = new ColumnHeader(); this.button1 = new Button(); this.button2 = new Button(); this.previewBox = new PictureBox(); this.button3 = new Button(); this.button4 = new Button(); this.button5 = new Button(); this.button6 = new Button(); this.button7 = new Button(); ((ISupportInitialize)this.previewBox).BeginInit(); this.SuspendLayout(); this.listVerses.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.listVerses.Columns.AddRange(new ColumnHeader[2] { this.columnHeader1, this.columnHeader2 }); this.listVerses.FullRowSelect = true; this.listVerses.GridLines = true; this.listVerses.HeaderStyle = ColumnHeaderStyle.Nonclickable; this.listVerses.LabelWrap = false; this.listVerses.Location = new Point(0, 0); this.listVerses.MultiSelect = false; this.listVerses.Name = "listVerses"; this.listVerses.Size = new Size(440, 263); this.listVerses.TabIndex = 2; this.listVerses.UseCompatibleStateImageBehavior = false; this.listVerses.View = View.Details; this.listVerses.ColumnWidthChanging += new ColumnWidthChangingEventHandler(this.listVerses_ColumnWidthChanging); this.listVerses.SelectedIndexChanged += new EventHandler(this.listVerses_SelectedIndexChanged); this.listVerses.KeyDown += new KeyEventHandler(this.frmControl_KeyDown); this.columnHeader1.Text = "ID"; this.columnHeader1.Width = 38; this.columnHeader2.Text = "Verse"; this.columnHeader2.Width = 398; this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(456, 12); this.button1.Name = "button1"; this.button1.Size = new Size(169, 23); this.button1.TabIndex = 3; this.button1.Text = "Normal ( N )"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new EventHandler(this.button1_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(455, 60); this.button2.Name = "button2"; this.button2.Size = new Size(169, 23); this.button2.TabIndex = 4; this.button2.Text = "Hide ( H )"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new EventHandler(this.button2_Click); this.previewBox.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; this.previewBox.BorderStyle = BorderStyle.FixedSingle; this.previewBox.Location = new Point(12, 269); this.previewBox.Name = "previewBox"; this.previewBox.Size = new Size(361, 232); this.previewBox.SizeMode = PictureBoxSizeMode.StretchImage; this.previewBox.TabIndex = 5; this.previewBox.TabStop = false; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(455, 89); this.button3.Name = "button3"; this.button3.Size = new Size(169, 23); this.button3.TabIndex = 6; this.button3.Text = "Freeze ( F )"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new EventHandler(this.button3_Click); this.button4.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button4.FlatStyle = FlatStyle.Flat; this.button4.Location = new Point(457, 182); this.button4.Name = "button4"; this.button4.Size = new Size(169, 23); this.button4.TabIndex = 7; this.button4.Text = "UP"; this.button4.UseVisualStyleBackColor = true; this.button4.Click += new EventHandler(this.button4_Click); this.button5.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button5.FlatStyle = FlatStyle.Flat; this.button5.Location = new Point(456, 211); this.button5.Name = "button5"; this.button5.Size = new Size(169, 23); this.button5.TabIndex = 8; this.button5.Text = "Down"; this.button5.UseVisualStyleBackColor = true; this.button5.Click += new EventHandler(this.button5_Click); this.button6.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button6.FlatStyle = FlatStyle.Flat; this.button6.Location = new Point(455, 240); this.button6.Name = "button6"; this.button6.Size = new Size(169, 23); this.button6.TabIndex = 9; this.button6.Text = "Exit"; this.button6.UseVisualStyleBackColor = true; this.button6.Click += new EventHandler(this.button6_Click); this.button7.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button7.FlatStyle = FlatStyle.Flat; this.button7.Location = new Point(457, 118); this.button7.Name = "button7"; this.button7.Size = new Size(169, 23); this.button7.TabIndex = 10; this.button7.Text = "White ( W )"; this.button7.UseVisualStyleBackColor = true; this.button7.Click += new EventHandler(this.button7_Click); this.AutoScaleDimensions = new SizeF(7f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.ClientSize = new Size(636, 513); this.Controls.Add((Control)this.button7); this.Controls.Add((Control)this.button6); this.Controls.Add((Control)this.button5); this.Controls.Add((Control)this.button4); this.Controls.Add((Control)this.button3); this.Controls.Add((Control)this.previewBox); this.Controls.Add((Control)this.button2); this.Controls.Add((Control)this.button1); this.Controls.Add((Control)this.listVerses); this.Font = new Font("Verdana", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)238); this.KeyPreview = true; this.Name = "frmControl"; this.Text = "SongProject - Control"; this.FormClosing += new FormClosingEventHandler(this.frmControl_FormClosing); this.Load += new EventHandler(this.frmControl_Load); this.KeyDown += new KeyEventHandler(this.frmControl_KeyDown); ((ISupportInitialize)this.previewBox).EndInit(); 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() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmCustomModules)); this.lstViewAvailableModules = new ListViewEx.ListViewEx(); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.btnSave = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.SuspendLayout(); // // lstViewAvailableModules // this.lstViewAvailableModules.AllowColumnReorder = true; this.lstViewAvailableModules.BackColor = System.Drawing.Color.White; this.lstViewAvailableModules.CheckBoxes = true; this.lstViewAvailableModules.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader2, this.columnHeader3 }); this.lstViewAvailableModules.Dock = System.Windows.Forms.DockStyle.Top; this.lstViewAvailableModules.DoubleClickActivation = false; this.lstViewAvailableModules.FullRowSelect = true; this.lstViewAvailableModules.Location = new System.Drawing.Point(0, 0); this.lstViewAvailableModules.Name = "lstViewAvailableModules"; this.lstViewAvailableModules.Size = new System.Drawing.Size(315, 250); this.lstViewAvailableModules.TabIndex = 4; this.lstViewAvailableModules.UseCompatibleStateImageBehavior = false; this.lstViewAvailableModules.View = System.Windows.Forms.View.Details; // // columnHeader2 // this.columnHeader2.Text = "Module Name"; this.columnHeader2.Width = 138; // // columnHeader3 // this.columnHeader3.Text = "Display Name"; this.columnHeader3.Width = 152; // // btnSave // this.btnSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnSave.Location = new System.Drawing.Point(153, 255); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(75, 23); this.btnSave.TabIndex = 5; this.btnSave.Text = "&Save"; this.btnSave.UseVisualStyleBackColor = true; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCancel.Location = new System.Drawing.Point(234, 255); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(75, 23); this.btnCancel.TabIndex = 6; this.btnCancel.Text = "&Cancel"; this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // frmCustomModules // this.AcceptButton = this.btnSave; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.White; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(315, 282); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnSave); this.Controls.Add(this.lstViewAvailableModules); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(331, 321); this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(331, 321); this.Name = "frmCustomModules"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SuiteCRM Custom Modules"; this.Load += new System.EventHandler(this.frmCustomModules_Load); this.ResumeLayout(false); }
private void InitializeComponent() { _Button1 = new Button(); _Button1.Click += new EventHandler(Button1_Click); selectEmpoyeeListView = new ListView(); ColumnHeader1 = new ColumnHeader(); ColumnHeader2 = new ColumnHeader(); ColumnHeader3 = new ColumnHeader(); idColumnHeader = new ColumnHeader(); Label1 = new Label(); payMethodComboBox = new ComboBox(); Label2 = new Label(); GroupBox1 = new GroupBox(); _TouchButton3 = new YardTabletControls.TouchButton(); _TouchButton3.ButtonClick += new YardTabletControls.TouchButton.ButtonClickEventHandler(TouchButton3_Load); jobDescriptionComboBox = new ComboBox(); Label5 = new Label(); yardComboBox = new ComboBox(); Label4 = new Label(); typeComboBox = new ComboBox(); Label3 = new Label(); Label7 = new Label(); _selectAllCheckBox = new CheckBox(); _selectAllCheckBox.CheckedChanged += new EventHandler(CheckBox1_CheckedChanged); GroupBox2 = new GroupBox(); testLabel = new Label(); Label6 = new Label(); GroupBox3 = new GroupBox(); Label11 = new Label(); ComboBox1 = new ComboBox(); ComboBox6 = new ComboBox(); Label9 = new Label(); TabControl1 = new TabControl(); TabPage0 = new TabPage(); _scheduleEmployeesTouchButton = new YardTabletControls.TouchButton(); _scheduleEmployeesTouchButton.ButtonClick += new YardTabletControls.TouchButton.ButtonClickEventHandler(scheduleEmployeesTouchButton_Load); TabPage1 = new TabPage(); TouchButton2 = new YardTabletControls.TouchButton(); ListView2 = new ListView(); ColumnHeader5 = new ColumnHeader(); ColumnHeader6 = new ColumnHeader(); ColumnHeader8 = new ColumnHeader(); Label10 = new Label(); TouchButton1 = new YardTabletControls.TouchButton(); GroupBox1.SuspendLayout(); GroupBox2.SuspendLayout(); GroupBox3.SuspendLayout(); TabControl1.SuspendLayout(); TabPage0.SuspendLayout(); TabPage1.SuspendLayout(); SuspendLayout(); // // Button1 // _Button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; _Button1.BackColor = Color.Firebrick; _Button1.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _Button1.ForeColor = Color.White; _Button1.Location = new Point(1291, 14); _Button1.Name = "_Button1"; _Button1.Size = new Size(37, 37); _Button1.TabIndex = 1; _Button1.Text = "X"; _Button1.UseVisualStyleBackColor = false; // // selectEmpoyeeListView // selectEmpoyeeListView.BackColor = Color.WhiteSmoke; selectEmpoyeeListView.CheckBoxes = true; selectEmpoyeeListView.Columns.AddRange(new ColumnHeader[] { ColumnHeader1, ColumnHeader2, ColumnHeader3, idColumnHeader }); selectEmpoyeeListView.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); selectEmpoyeeListView.FullRowSelect = true; selectEmpoyeeListView.HideSelection = false; selectEmpoyeeListView.Location = new Point(13, 58); selectEmpoyeeListView.Name = "selectEmpoyeeListView"; selectEmpoyeeListView.Size = new Size(567, 347); selectEmpoyeeListView.TabIndex = 2; selectEmpoyeeListView.UseCompatibleStateImageBehavior = false; selectEmpoyeeListView.View = View.Details; // // ColumnHeader1 // ColumnHeader1.Text = " Alias"; ColumnHeader1.Width = 165; // // ColumnHeader2 // ColumnHeader2.Text = "First Name"; ColumnHeader2.Width = 182; // // ColumnHeader3 // ColumnHeader3.Text = "Last Name"; ColumnHeader3.Width = 184; // // idColumnHeader // idColumnHeader.Text = ""; idColumnHeader.Width = 7; // // Label1 // Label1.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label1.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label1.ForeColor = Color.White; Label1.Location = new Point(13, 29); Label1.Name = "Label1"; Label1.Size = new Size(567, 37); Label1.TabIndex = 3; Label1.Text = "Select Employees"; Label1.TextAlign = ContentAlignment.TopCenter; // // payMethodComboBox // payMethodComboBox.DropDownStyle = ComboBoxStyle.DropDownList; payMethodComboBox.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); payMethodComboBox.FormattingEnabled = true; payMethodComboBox.Items.AddRange(new object[] { "All", "Hourly", "Salary", "Piece Work/Hour" }); payMethodComboBox.Location = new Point(365, 27); payMethodComboBox.Name = "payMethodComboBox"; payMethodComboBox.Size = new Size(194, 32); payMethodComboBox.TabIndex = 4; // // Label2 // Label2.AutoSize = true; Label2.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label2.ForeColor = Color.Black; Label2.Location = new Point(262, 33); Label2.Name = "Label2"; Label2.Size = new Size(97, 20); Label2.TabIndex = 5; Label2.Text = "Pay Method:"; // // GroupBox1 // GroupBox1.Controls.Add(_TouchButton3); GroupBox1.Controls.Add(jobDescriptionComboBox); GroupBox1.Controls.Add(Label5); GroupBox1.Controls.Add(yardComboBox); GroupBox1.Controls.Add(Label4); GroupBox1.Controls.Add(typeComboBox); GroupBox1.Controls.Add(Label3); GroupBox1.Controls.Add(payMethodComboBox); GroupBox1.Controls.Add(Label2); GroupBox1.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); GroupBox1.ForeColor = Color.Black; GroupBox1.Location = new Point(81, 97); GroupBox1.Name = "GroupBox1"; GroupBox1.Size = new Size(796, 108); GroupBox1.TabIndex = 6; GroupBox1.TabStop = false; GroupBox1.Text = "1 - Filter employees"; // // TouchButton3 // _TouchButton3.AutoSizeMode = AutoSizeMode.GrowAndShrink; _TouchButton3.BevelWidth = Conversions.ToShort(2); _TouchButton3.ButtonEnabled = true; _TouchButton3.ButtonFontSize = Conversions.ToShort(18); _TouchButton3.ButtonStyle = YardTabletControls.TouchButton.StyleOFButton.HorizantalStyle; _TouchButton3.Caption = "Update Search"; _TouchButton3.Font = new Font("Arial Black", 8.142858f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _TouchButton3.Location = new Point(645, 56); _TouchButton3.Margin = new Padding(4, 3, 4, 3); _TouchButton3.Name = "_TouchButton3"; _TouchButton3.Size = new Size(144, 43); _TouchButton3.StickyMode = YardTabletControls.TouchButton.ModeOfSticky.StickyOff; _TouchButton3.TabIndex = 14; _TouchButton3.TextColour = Color.White; _TouchButton3.TouchButtonColour = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _TouchButton3.Value = false; // // jobDescriptionComboBox // jobDescriptionComboBox.Anchor = AnchorStyles.Left; jobDescriptionComboBox.AutoCompleteCustomSource.AddRange(new string[] { "Accounting Manager", "Bag/Bagger Labourer", "Bulk Labourer/Yard Hand ", "IT Junior", "IT Manager", "Logistics Coordinator", "Logistics Manager", "Machine Operator", "Mechanic", "Operations Manager", "Vice President", "Yard Manager" }); jobDescriptionComboBox.DropDownStyle = ComboBoxStyle.DropDownList; jobDescriptionComboBox.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); jobDescriptionComboBox.FormattingEnabled = true; jobDescriptionComboBox.ItemHeight = 24; jobDescriptionComboBox.Items.AddRange(new object[] { "Accounting Assistant", "Accounting Manager", "Bag Labourer", "Bag/Bagger Labourer", "Bagger Labourer", "Bagger Labourer/Yard Hand", "Bulk Labourer", "Bulk Labourer/Yard Hand", "Container Manager", "Forwarding Manager", "IT Junior", "IT Manager", "Logistics Coordinator", "Logistics Manager", "Machine Operator", "Mechanic", "President", "Safety and Risk Manager", "Vice President", "Yard Hand", "Warehouse Labourer", "All" }); jobDescriptionComboBox.Location = new Point(365, 67); jobDescriptionComboBox.Margin = new Padding(2); jobDescriptionComboBox.Name = "jobDescriptionComboBox"; jobDescriptionComboBox.Size = new Size(228, 32); jobDescriptionComboBox.TabIndex = 15; // // Label5 // Label5.AutoSize = true; Label5.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label5.ForeColor = Color.Black; Label5.Location = new Point(237, 74); Label5.Name = "Label5"; Label5.Size = new Size(123, 20); Label5.TabIndex = 11; Label5.Text = "Job Description:"; // // yardComboBox // yardComboBox.DropDownStyle = ComboBoxStyle.DropDownList; yardComboBox.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); yardComboBox.FormattingEnabled = true; yardComboBox.Items.AddRange(new object[] { "Both", "Ewen", "Lindsey", "All" }); yardComboBox.Location = new Point(92, 67); yardComboBox.Name = "yardComboBox"; yardComboBox.Size = new Size(121, 32); yardComboBox.TabIndex = 8; // // Label4 // Label4.AutoSize = true; Label4.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label4.ForeColor = Color.Black; Label4.Location = new Point(39, 73); Label4.Name = "Label4"; Label4.Size = new Size(47, 20); Label4.TabIndex = 9; Label4.Text = "Yard:"; // // typeComboBox // typeComboBox.DropDownStyle = ComboBoxStyle.DropDownList; typeComboBox.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); typeComboBox.FormattingEnabled = true; typeComboBox.Items.AddRange(new object[] { "All", "Crew", "Office" }); typeComboBox.Location = new Point(92, 27); typeComboBox.Name = "typeComboBox"; typeComboBox.Size = new Size(121, 32); typeComboBox.TabIndex = 6; // // Label3 // Label3.AutoSize = true; Label3.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label3.ForeColor = Color.Black; Label3.Location = new Point(39, 33); Label3.Name = "Label3"; Label3.Size = new Size(47, 20); Label3.TabIndex = 7; Label3.Text = "Type:"; // Label7 // Label7.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label7.Dock = DockStyle.Top; Label7.Font = new Font("Microsoft Sans Serif", 20.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label7.ForeColor = Color.White; Label7.Location = new Point(3, 3); Label7.Name = "Label7"; Label7.Size = new Size(1336, 74); Label7.TabIndex = 9; Label7.Text = "Shift Scheduling"; Label7.TextAlign = ContentAlignment.MiddleCenter; // // selectAllCheckBox // _selectAllCheckBox.AutoSize = true; _selectAllCheckBox.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _selectAllCheckBox.Location = new Point(18, 64); _selectAllCheckBox.Name = "_selectAllCheckBox"; _selectAllCheckBox.Size = new Size(15, 14); _selectAllCheckBox.TabIndex = 10; _selectAllCheckBox.UseVisualStyleBackColor = true; // // GroupBox2 // GroupBox2.Controls.Add(testLabel); GroupBox2.Controls.Add(_selectAllCheckBox); GroupBox2.Controls.Add(selectEmpoyeeListView); GroupBox2.Controls.Add(Label1); GroupBox2.Controls.Add(Label6); GroupBox2.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold); GroupBox2.ForeColor = Color.Black; GroupBox2.Location = new Point(81, 224); GroupBox2.Name = "GroupBox2"; GroupBox2.Size = new Size(1193, 419); GroupBox2.TabIndex = 11; GroupBox2.TabStop = false; GroupBox2.Text = "2 - Select employees and assign dates"; // // testLabel // testLabel.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); testLabel.Location = new Point(753, 312); testLabel.Name = "testLabel"; testLabel.Size = new Size(339, 93); testLabel.TabIndex = 12; // // Label6 // Label6.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label6.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label6.ForeColor = Color.White; Label6.Location = new Point(740, 29); Label6.Name = "Label6"; Label6.Size = new Size(359, 37); Label6.TabIndex = 11; Label6.Text = "Select Dates"; Label6.TextAlign = ContentAlignment.TopCenter; // // GroupBox3 // GroupBox3.Controls.Add(Label11); GroupBox3.Controls.Add(ComboBox1); GroupBox3.Controls.Add(ComboBox6); GroupBox3.Controls.Add(Label9); GroupBox3.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold); GroupBox3.ForeColor = Color.Black; GroupBox3.Location = new Point(81, 658); GroupBox3.Name = "GroupBox3"; GroupBox3.Size = new Size(497, 125); GroupBox3.TabIndex = 12; GroupBox3.TabStop = false; GroupBox3.Text = "3 - Select shift type and location"; // // Label11 // Label11.AutoSize = true; Label11.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label11.ForeColor = Color.Black; Label11.Location = new Point(48, 42); Label11.Name = "Label11"; Label11.Size = new Size(80, 20); Label11.TabIndex = 14; Label11.Text = "Shift type:"; // // ComboBox1 // ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList; ComboBox1.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); ComboBox1.FormattingEnabled = true; ComboBox1.Items.AddRange(new object[] { "Hourly", "Piece Work/Hour" }); ComboBox1.Location = new Point(134, 36); ComboBox1.Name = "ComboBox1"; ComboBox1.Size = new Size(194, 32); ComboBox1.TabIndex = 12; // // ComboBox6 // ComboBox6.DropDownStyle = ComboBoxStyle.DropDownList; ComboBox6.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); ComboBox6.FormattingEnabled = true; ComboBox6.Items.AddRange(new object[] { "Ewen", "Lindsey" }); ComboBox6.Location = new Point(134, 74); ComboBox6.Name = "ComboBox6"; ComboBox6.Size = new Size(121, 32); ComboBox6.TabIndex = 8; // // Label9 // Label9.AutoSize = true; Label9.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label9.ForeColor = Color.Black; Label9.Location = new Point(71, 80); Label9.Name = "Label9"; Label9.Size = new Size(57, 20); Label9.TabIndex = 9; Label9.Text = "* Yard:"; // // TabControl1 // TabControl1.Alignment = TabAlignment.Left; TabControl1.Controls.Add(TabPage0); TabControl1.Controls.Add(TabPage1); TabControl1.Dock = DockStyle.Fill; TabControl1.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); TabControl1.ItemSize = new Size(115, 35); TabControl1.Location = new Point(0, 0); TabControl1.Multiline = true; TabControl1.Name = "TabControl1"; TabControl1.Padding = new Point(15, 3); TabControl1.SelectedIndex = 0; TabControl1.Size = new Size(1385, 818); TabControl1.TabIndex = 14; // // TabPage0 // TabPage0.Controls.Add(_scheduleEmployeesTouchButton); TabPage0.Controls.Add(_Button1); TabPage0.Controls.Add(Label7); TabPage0.Controls.Add(GroupBox1); TabPage0.Controls.Add(GroupBox3); TabPage0.Controls.Add(GroupBox2); TabPage0.Location = new Point(39, 4); TabPage0.Name = "TabPage0"; TabPage0.Padding = new Padding(3); TabPage0.Size = new Size(1342, 810); TabPage0.TabIndex = 1; TabPage0.Text = "Add Shifts"; TabPage0.UseVisualStyleBackColor = true; // // scheduleEmployeesTouchButton // _scheduleEmployeesTouchButton.AutoSizeMode = AutoSizeMode.GrowAndShrink; _scheduleEmployeesTouchButton.BevelWidth = Conversions.ToShort(2); _scheduleEmployeesTouchButton.ButtonEnabled = true; _scheduleEmployeesTouchButton.ButtonFontSize = Conversions.ToShort(24); _scheduleEmployeesTouchButton.ButtonStyle = YardTabletControls.TouchButton.StyleOFButton.HorizantalStyle; _scheduleEmployeesTouchButton.Caption = "Schedule Employees"; _scheduleEmployeesTouchButton.Font = new Font("Arial Black", 8.142858f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _scheduleEmployeesTouchButton.Location = new Point(1008, 717); _scheduleEmployeesTouchButton.Margin = new Padding(4, 3, 4, 3); _scheduleEmployeesTouchButton.Name = "_scheduleEmployeesTouchButton"; _scheduleEmployeesTouchButton.Size = new Size(266, 56); _scheduleEmployeesTouchButton.StickyMode = YardTabletControls.TouchButton.ModeOfSticky.StickyOff; _scheduleEmployeesTouchButton.TabIndex = 16; _scheduleEmployeesTouchButton.TextColour = Color.White; _scheduleEmployeesTouchButton.TouchButtonColour = Color.Olive; _scheduleEmployeesTouchButton.Value = false; // // TabPage1 // TabPage1.Controls.Add(TouchButton2); TabPage1.Controls.Add(ListView2); TabPage1.Controls.Add(Label10); TabPage1.Controls.Add(TouchButton1); TabPage1.ForeColor = Color.Green; TabPage1.Location = new Point(39, 4); TabPage1.Name = "TabPage1"; TabPage1.Padding = new Padding(3); TabPage1.Size = new Size(1342, 810); TabPage1.TabIndex = 0; TabPage1.Text = "Schedule"; TabPage1.UseVisualStyleBackColor = true; // // TouchButton2 // TouchButton2.AutoSizeMode = AutoSizeMode.GrowAndShrink; TouchButton2.BevelWidth = Conversions.ToShort(2); TouchButton2.ButtonEnabled = true; TouchButton2.ButtonFontSize = Conversions.ToShort(28); TouchButton2.ButtonStyle = YardTabletControls.TouchButton.StyleOFButton.HorizantalStyle; TouchButton2.Caption = ">"; TouchButton2.Font = new Font("Arial Black", 8.142858f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); TouchButton2.Location = new Point(816, 154); TouchButton2.Margin = new Padding(4, 3, 4, 3); TouchButton2.Name = "TouchButton2"; TouchButton2.Size = new Size(39, 37); TouchButton2.StickyMode = YardTabletControls.TouchButton.ModeOfSticky.StickyOff; TouchButton2.TabIndex = 7; TouchButton2.TextColour = Color.White; TouchButton2.TouchButtonColour = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); TouchButton2.Value = false; // // ListView2 // ListView2.BackColor = Color.WhiteSmoke; ListView2.CheckBoxes = true; ListView2.Columns.AddRange(new ColumnHeader[] { ColumnHeader5, ColumnHeader6, ColumnHeader8 }); ListView2.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); ListView2.FullRowSelect = true; ListView2.HideSelection = false; ListView2.Location = new Point(70, 222); ListView2.Name = "ListView2"; ListView2.Size = new Size(785, 416); ListView2.TabIndex = 4; ListView2.UseCompatibleStateImageBehavior = false; ListView2.View = View.Details; // // ColumnHeader5 // ColumnHeader5.Text = ""; ColumnHeader5.TextAlign = HorizontalAlignment.Center; ColumnHeader5.Width = 25; // // ColumnHeader6 // ColumnHeader6.Text = "Alias"; ColumnHeader6.Width = 150; // // ColumnHeader8 // ColumnHeader8.Text = "Last Name"; ColumnHeader8.Width = 150; // // Label10 // Label10.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label10.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label10.ForeColor = Color.White; Label10.Location = new Point(70, 194); Label10.Name = "Label10"; Label10.Size = new Size(785, 56); Label10.TabIndex = 5; Label10.Text = "Schedule for Sep 15, 2019"; Label10.TextAlign = ContentAlignment.TopCenter; // // TouchButton1 // TouchButton1.AutoSizeMode = AutoSizeMode.GrowAndShrink; TouchButton1.BevelWidth = Conversions.ToShort(2); TouchButton1.ButtonEnabled = true; TouchButton1.ButtonFontSize = Conversions.ToShort(28); TouchButton1.ButtonStyle = YardTabletControls.TouchButton.StyleOFButton.HorizantalStyle; TouchButton1.Caption = "<"; TouchButton1.Font = new Font("Arial Black", 8.142858f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); TouchButton1.Location = new Point(769, 154); TouchButton1.Margin = new Padding(4, 3, 4, 3); TouchButton1.Name = "TouchButton1"; TouchButton1.Size = new Size(39, 37); TouchButton1.StickyMode = YardTabletControls.TouchButton.ModeOfSticky.StickyOff; TouchButton1.TabIndex = 6; TouchButton1.TextColour = Color.White; TouchButton1.TouchButtonColour = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); TouchButton1.Value = false; // // FrmShiftScheduling // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.Snow; ClientSize = new Size(1385, 818); ControlBox = false; Controls.Add(TabControl1); FormBorderStyle = FormBorderStyle.FixedSingle; Margin = new Padding(2); Name = "FrmShiftScheduling"; StartPosition = FormStartPosition.CenterScreen; GroupBox1.ResumeLayout(false); GroupBox1.PerformLayout(); GroupBox2.ResumeLayout(false); GroupBox2.PerformLayout(); GroupBox3.ResumeLayout(false); GroupBox3.PerformLayout(); TabControl1.ResumeLayout(false); TabPage0.ResumeLayout(false); TabPage1.ResumeLayout(false); Load += new EventHandler(FrmShiftScheduling_Load); 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.propertyGrid = new System.Windows.Forms.PropertyGrid(); this.listView = new System.Windows.Forms.ListView(); this.addButton = new System.Windows.Forms.Button(); this.deleteButton = new System.Windows.Forms.Button(); this.closeButton = new System.Windows.Forms.Button(); this.pictureBox = new System.Windows.Forms.PictureBox(); this.columnHeader = new System.Windows.Forms.ColumnHeader(); this.infoLabel = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit(); this.SuspendLayout(); // // propertyGrid // this.propertyGrid.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.propertyGrid.HelpVisible = true; this.propertyGrid.Location = new System.Drawing.Point(182, 12); this.propertyGrid.Name = "propertyGrid"; this.propertyGrid.Size = new System.Drawing.Size(355, 299); this.propertyGrid.TabIndex = 1; this.propertyGrid.ToolbarVisible = false; this.propertyGrid.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.PropertyValueChanged); // // listView // this.listView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.listView.Location = new System.Drawing.Point(12, 12); this.listView.Name = "listView"; this.listView.MultiSelect = true; this.listView.HideSelection = false; this.listView.View = System.Windows.Forms.View.Details; this.listView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; this.listView.Size = new System.Drawing.Size(160, 270); this.listView.TabIndex = 2; this.listView.UseCompatibleStateImageBehavior = false; this.listView.SelectedIndexChanged += new System.EventHandler(this.ListViewIndexChanged); this.listView.Columns.Add(this.columnHeader); // // addButton // this.addButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.addButton.Location = new System.Drawing.Point(11, 289); this.addButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this.addButton.Name = "addButton"; this.addButton.Size = new System.Drawing.Size(75, 23); this.addButton.TabIndex = 3; this.addButton.Text = "&Add"; this.addButton.UseVisualStyleBackColor = true; this.addButton.Click += new System.EventHandler(this.AddButtonClick); // // deleteButton // this.deleteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.deleteButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this.deleteButton.Location = new System.Drawing.Point(97, 289); this.deleteButton.Name = "deleteButton"; this.deleteButton.Size = new System.Drawing.Size(75, 23); this.deleteButton.TabIndex = 4; this.deleteButton.Text = "&Delete"; this.deleteButton.UseVisualStyleBackColor = true; this.deleteButton.Click += new System.EventHandler(this.DeleteButtonClick); // // closeButton // this.closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.closeButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this.closeButton.Location = new System.Drawing.Point(438, 319); this.closeButton.Name = "closeButton"; this.closeButton.Size = new System.Drawing.Size(100, 23); this.closeButton.TabIndex = 5; this.closeButton.Text = "&Close"; this.closeButton.UseVisualStyleBackColor = true; this.closeButton.Click += new System.EventHandler(this.CloseButtonClick); // // pictureBox // this.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.pictureBox.Location = new System.Drawing.Point(13, 324); this.pictureBox.Name = "pictureBox"; this.pictureBox.Size = new System.Drawing.Size(16, 16); this.pictureBox.TabIndex = 6; this.pictureBox.TabStop = false; // // infoLabel // this.infoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.infoLabel.FlatStyle = System.Windows.Forms.FlatStyle.System; this.infoLabel.AutoSize = true; this.infoLabel.Location = new System.Drawing.Point(34, 325); this.infoLabel.Name = "infoLabel"; this.infoLabel.Size = new System.Drawing.Size(358, 20); this.infoLabel.TabIndex = 7; this.infoLabel.Text = "Macros will take effect soon as you edit them successfully."; // // ManagerDialog // this.MaximizeBox = false; this.MinimizeBox = false; this.AcceptButton = this.closeButton; this.CancelButton = this.closeButton; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(549, 353); this.Controls.Add(this.infoLabel); this.Controls.Add(this.pictureBox); this.Controls.Add(this.closeButton); this.Controls.Add(this.deleteButton); this.Controls.Add(this.addButton); this.Controls.Add(this.listView); this.Controls.Add(this.propertyGrid); this.Name = "ManagerDialog"; this.ShowIcon = false; this.ShowInTaskbar = false; this.Load += new System.EventHandler(this.DialogLoad); this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.DialogClosed); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Text = "Macros"; ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// /// Erforderliche Methode für die Designerunterstützung. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. /// private void InitializeComponent() { this.btnAbbrechen = new System.Windows.Forms.Button(); this.lblStatus2 = new System.Windows.Forms.ToolStripStatusLabel(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.prgBar = new System.Windows.Forms.ToolStripProgressBar(); this.btnProjectsHistory = new System.Windows.Forms.Button(); this.btnHistory = new System.Windows.Forms.Button(); this.liviLastOpend = new System.Windows.Forms.ListView(); this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // // btnAbbrechen // this.btnAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnAbbrechen.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnAbbrechen.Location = new System.Drawing.Point(612, 418); this.btnAbbrechen.Name = "btnAbbrechen"; this.btnAbbrechen.Size = new System.Drawing.Size(120, 24); this.btnAbbrechen.TabIndex = 7; this.btnAbbrechen.Text = "Abbrechen"; this.btnAbbrechen.UseVisualStyleBackColor = true; // // lblStatus2 // this.lblStatus2.Margin = new System.Windows.Forms.Padding(2, 3, 0, 2); this.lblStatus2.Name = "lblStatus2"; this.lblStatus2.Size = new System.Drawing.Size(235, 17); this.lblStatus2.Text = "Letzte Änderung: 2009-10-23 - Johann Weiher"; // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.prgBar}); this.statusStrip1.Location = new System.Drawing.Point(0, 450); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(744, 22); this.statusStrip1.SizingGrip = false; this.statusStrip1.TabIndex = 13; this.statusStrip1.Text = "statusStrip1"; // // prgBar // this.prgBar.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.prgBar.AutoSize = false; this.prgBar.Name = "prgBar"; this.prgBar.Size = new System.Drawing.Size(740, 16); // // btnProjectsHistory // this.btnProjectsHistory.Enabled = false; this.btnProjectsHistory.Location = new System.Drawing.Point(486, 419); this.btnProjectsHistory.Name = "btnProjectsHistory"; this.btnProjectsHistory.Size = new System.Drawing.Size(120, 23); this.btnProjectsHistory.TabIndex = 11; this.btnProjectsHistory.Text = "Projekt(e) öffnen"; this.btnProjectsHistory.UseVisualStyleBackColor = true; this.btnProjectsHistory.Click += new System.EventHandler(this.btnProjectsHistory_Click); // // btnHistory // this.btnHistory.Location = new System.Drawing.Point(360, 419); this.btnHistory.Name = "btnHistory"; this.btnHistory.Size = new System.Drawing.Size(120, 23); this.btnHistory.TabIndex = 17; this.btnHistory.Text = "History löschen"; this.btnHistory.UseVisualStyleBackColor = true; this.btnHistory.Click += new System.EventHandler(this.btnHistory_Click); // // liviLastOpend // this.liviLastOpend.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader4, this.columnHeader5, this.columnHeader6}); this.liviLastOpend.FullRowSelect = true; this.liviLastOpend.GridLines = true; this.liviLastOpend.HideSelection = false; this.liviLastOpend.Location = new System.Drawing.Point(12, 12); this.liviLastOpend.Name = "liviLastOpend"; this.liviLastOpend.Size = new System.Drawing.Size(720, 400); this.liviLastOpend.TabIndex = 10; this.liviLastOpend.UseCompatibleStateImageBehavior = false; this.liviLastOpend.View = System.Windows.Forms.View.Details; this.liviLastOpend.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.liviLastOpend_ColumnClick); this.liviLastOpend.SelectedIndexChanged += new System.EventHandler(this.liviLastOpend_SelectedIndexChanged); this.liviLastOpend.DoubleClick += new System.EventHandler(this.liviLastOpend_DoubleClick); // // columnHeader4 // this.columnHeader4.Text = "Projekt"; this.columnHeader4.Width = 76; // // columnHeader5 // this.columnHeader5.Text = "Pfad"; this.columnHeader5.Width = 89; // // columnHeader6 // this.columnHeader6.Text = "Erweiterung"; this.columnHeader6.Width = 223; // // FrmProjectHistory // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Control; this.CancelButton = this.btnAbbrechen; this.ClientSize = new System.Drawing.Size(744, 472); this.Controls.Add(this.btnHistory); this.Controls.Add(this.btnProjectsHistory); this.Controls.Add(this.liviLastOpend); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.btnAbbrechen); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FrmProjectHistory"; this.ShowIcon = false; this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "ProjectHistory"; this.Load += new System.EventHandler(this.FrmSearchMacros_Load); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void FillGrid() { SourceGrid.Cells.Views.Cell colTitleModel = new SourceGrid.Cells.Views.Cell { ElementText = new RotatedText(-90.0f), BackColor = Color.SteelBlue, ForeColor = Color.White, TextAlignment = DevAge.Drawing.ContentAlignment.BottomCenter }; SourceGrid.Cells.Views.Cell topleftTitleModel = new SourceGrid.Cells.Views.Cell { BackColor = Color.SteelBlue, ForeColor = Color.White, TextAlignment = DevAge.Drawing.ContentAlignment.BottomLeft }; SourceGrid.Cells.Views.Cell isActorModel = new SourceGrid.Cells.Views.Cell { BackColor = Color.Green, ForeColor = Color.Green, TextAlignment = DevAge.Drawing.ContentAlignment.MiddleLeft }; SourceGrid.Cells.Views.Cell isGuestModel = new SourceGrid.Cells.Views.Cell { BackColor = Color.LightGreen, ForeColor = Color.LightGreen, TextAlignment = DevAge.Drawing.ContentAlignment.MiddleLeft }; grid1.Columns.Clear(); grid1.Rows.Clear(); int rows = theData.DataR + 2; // title and total int cols = theData.DataC + 2; grid1.ColumnsCount = cols; grid1.RowsCount = rows; grid1.FixedColumns = 1; grid1.FixedRows = 1; grid1.Selection.EnableMultiSelection = false; for (int i = 0; i < cols; i++) { grid1.Columns[i].AutoSizeMode = i == 0 ? SourceGrid.AutoSizeMode.Default : SourceGrid.AutoSizeMode.MinimumSize; if (i > 0) { grid1.Columns[i].Width = 24; } } grid1.Rows[0].AutoSizeMode = SourceGrid.AutoSizeMode.MinimumSize; grid1.Rows[0].Height = 100; ColumnHeader h = new ColumnHeader("Show") { AutomaticSortEnabled = false, ResizeEnabled = false }; grid1[0, 0] = h; grid1[0, 0].View = topleftTitleModel; grid1[0, 0].AddController(new SideClickEvent(this, null)); // default sort for (int c = 0; c < theData.DataC; c++) { h = new ColumnHeader(theData.Cols[c]) { AutomaticSortEnabled = false, ResizeEnabled = false }; grid1[0, c + 1] = h; grid1[0, c + 1].View = colTitleModel; grid1[0, c + 1].AddController(new TopClickEvent(this, theData.Cols[c])); } int totalCol = grid1.ColumnsCount - 1; h = new ColumnHeader("Totals") { AutomaticSortEnabled = false, ResizeEnabled = false }; grid1.Columns[totalCol].Width = 48; grid1[0, totalCol] = h; grid1[0, totalCol].View = colTitleModel; grid1[0, totalCol].AddController(new SortRowsByCountEvent(this)); for (int r = 0; r < theData.DataR; r++) { grid1[r + 1, 0] = new RowHeader(theData.Rows[r]) { ResizeEnabled = false }; grid1[r + 1, 0].AddController(new SideClickEvent(this, theData.Rows[r])); } grid1[theData.DataR + 1, 0] = new RowHeader("Totals") { ResizeEnabled = false }; grid1[theData.DataR + 1, 0].AddController(new SortColsByCountEvent(this)); for (int c = 0; c < theData.DataC; c++) { for (int r = 0; r < theData.DataR; r++) { if (theData.Data[r][c].HasValue) { grid1[r + 1, c + 1] = new Cell("Y") { View = theData.Data[r][c].Value ? isActorModel : isGuestModel }; grid1[r + 1, c + 1].AddController(new CellClickEvent(theData.Cols[c])); } else { grid1[r + 1, c + 1] = new Cell(""); } } } for (int c = 0; c < theData.DataC; c++) { grid1[rows - 1, c + 1] = new Cell(theData.ColScore(c)); } for (int r = 0; r < theData.DataR; r++) { grid1[r + 1, cols - 1] = new Cell(theData.RowScore(r, null)); } grid1[theData.DataR + 1, theData.DataC + 1] = new Cell(""); grid1.AutoSizeCells(); }
private void InitializeComponent() { var resources = new System.ComponentModel.ComponentResourceManager(typeof(PluginInstallerForm)); _Panel1 = new Panel(); _ButtonX_Remove = new DevComponents.DotNetBar.ButtonX(); _ButtonX_Remove.Click += new EventHandler(ButtonX_Remove_Click); _ButtonX_Install = new DevComponents.DotNetBar.ButtonX(); _ButtonItem_SingleFile = new DevComponents.DotNetBar.ButtonItem(); _ButtonItem_SingleFile.Click += new EventHandler(ButtonItem_SingleFile_Click); _ButtonItem_ZipFile = new DevComponents.DotNetBar.ButtonItem(); _ButtonItem_ZipFile.Click += new EventHandler(ButtonItem_ZipFile_Click); _ButtonItem_Directory = new DevComponents.DotNetBar.ButtonItem(); _ButtonItem_Directory.Click += new EventHandler(ButtonItem_Directory_Click); _ButtonX_Close = new DevComponents.DotNetBar.ButtonX(); _ButtonX_Close.Click += new EventHandler(ButtonX_Close_Click); _ListViewEx_Plugins = new DevComponents.DotNetBar.Controls.ListViewEx(); _ColumnHeader1 = new ColumnHeader(); _ColumnHeader2 = new ColumnHeader(); _ColumnHeader3 = new ColumnHeader(); _ColumnHeader4 = new ColumnHeader(); _Panel1.SuspendLayout(); SuspendLayout(); // // Panel1 // _Panel1.BackColor = Color.Transparent; _Panel1.Controls.Add(_ButtonX_Remove); _Panel1.Controls.Add(_ButtonX_Install); _Panel1.Controls.Add(_ButtonX_Close); _Panel1.Controls.Add(_ListViewEx_Plugins); resources.ApplyResources(_Panel1, "Panel1"); _Panel1.Name = "Panel1"; // // ButtonX_Remove // _ButtonX_Remove.AccessibleRole = AccessibleRole.PushButton; resources.ApplyResources(_ButtonX_Remove, "ButtonX_Remove"); _ButtonX_Remove.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; _ButtonX_Remove.Name = "ButtonX_Remove"; _ButtonX_Remove.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; // // ButtonX_Install // _ButtonX_Install.AccessibleRole = AccessibleRole.PushButton; resources.ApplyResources(_ButtonX_Install, "ButtonX_Install"); _ButtonX_Install.AutoExpandOnClick = true; _ButtonX_Install.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; _ButtonX_Install.Name = "ButtonX_Install"; _ButtonX_Install.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; _ButtonX_Install.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { _ButtonItem_SingleFile, _ButtonItem_ZipFile, _ButtonItem_Directory }); // // ButtonItem_SingleFile // _ButtonItem_SingleFile.GlobalItem = false; _ButtonItem_SingleFile.Name = "ButtonItem_SingleFile"; resources.ApplyResources(_ButtonItem_SingleFile, "ButtonItem_SingleFile"); // // ButtonItem_ZipFile // _ButtonItem_ZipFile.GlobalItem = false; _ButtonItem_ZipFile.Name = "ButtonItem_ZipFile"; resources.ApplyResources(_ButtonItem_ZipFile, "ButtonItem_ZipFile"); // // ButtonItem_Directory // _ButtonItem_Directory.GlobalItem = false; _ButtonItem_Directory.Name = "ButtonItem_Directory"; resources.ApplyResources(_ButtonItem_Directory, "ButtonItem_Directory"); // // ButtonX_Close // _ButtonX_Close.AccessibleRole = AccessibleRole.PushButton; resources.ApplyResources(_ButtonX_Close, "ButtonX_Close"); _ButtonX_Close.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; _ButtonX_Close.DialogResult = DialogResult.Cancel; _ButtonX_Close.Name = "ButtonX_Close"; _ButtonX_Close.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; // // ListViewEx_Plugins // resources.ApplyResources(_ListViewEx_Plugins, "ListViewEx_Plugins"); _ListViewEx_Plugins.BackColor = Color.White; // // // _ListViewEx_Plugins.Border.Class = "ListViewBorder"; _ListViewEx_Plugins.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; _ListViewEx_Plugins.Columns.AddRange(new ColumnHeader[] { _ColumnHeader1, _ColumnHeader2, _ColumnHeader3, _ColumnHeader4 }); _ListViewEx_Plugins.DisabledBackColor = Color.Empty; _ListViewEx_Plugins.ForeColor = Color.Black; _ListViewEx_Plugins.FullRowSelect = true; _ListViewEx_Plugins.Groups.AddRange(new ListViewGroup[] { (ListViewGroup)resources.GetObject("ListViewEx_Plugins.Groups"), (ListViewGroup)resources.GetObject("ListViewEx_Plugins.Groups1") }); _ListViewEx_Plugins.HideSelection = false; _ListViewEx_Plugins.Name = "ListViewEx_Plugins"; _ListViewEx_Plugins.UseCompatibleStateImageBehavior = false; _ListViewEx_Plugins.View = View.Details; // // ColumnHeader1 // resources.ApplyResources(_ColumnHeader1, "ColumnHeader1"); // // ColumnHeader2 // resources.ApplyResources(_ColumnHeader2, "ColumnHeader2"); // // ColumnHeader3 // resources.ApplyResources(_ColumnHeader3, "ColumnHeader3"); // // ColumnHeader4 // resources.ApplyResources(_ColumnHeader4, "ColumnHeader4"); // // PluginInstallerForm // resources.ApplyResources(this, "$this"); AutoScaleMode = AutoScaleMode.Font; CancelButton = _ButtonX_Close; Controls.Add(_Panel1); Name = "PluginInstallerForm"; TopLeftCornerSize = 0; TopRightCornerSize = 0; _Panel1.ResumeLayout(false); ResumeLayout(false); }
private void InitialzePokemonListView() { PokemonListView.Columns.Clear(); ColumnHeader columnheader; columnheader = new ColumnHeader(); columnheader.Name = th.TS("Name"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("CP"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("IV A-D-S"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("LVL"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("Evolvable?"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("Height"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("Weight"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("HP"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("Attack"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("SpecialAttack (DPS)"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = "#"; columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("% CP"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("Type"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Name = th.TS("Type 2"); columnheader.Text = columnheader.Name; PokemonListView.Columns.Add(columnheader); PokemonListView.Columns.Add(CreateColumn(th.TS("Catch Date"))); PokemonListView.Columns.Add(CreateColumn(th.TS("Pokeball"))); PokemonListView.Columns.Add(CreateColumn(th.TS("Num Upgrades"))); PokemonListView.Columns.Add(CreateColumn(th.TS("Battles Attacked"))); PokemonListView.Columns.Add(CreateColumn(th.TS("Battles Defended"))); PokemonListView.Columns.Add(CreateColumn(th.TS("In Gym"))); PokemonListView.Columns.Add(CreateColumn(th.TS("Capture Place"))); PokemonListView.Columns["#"].DisplayIndex = 0; PokemonListView.ColumnClick += new ColumnClickEventHandler(PokemonListView_ColumnClick); PokemonListView.ShowItemToolTips = true; PokemonListView.DoubleBuffered(true); PokemonListView.View = View.Details; createImageList(); }
public void ColumnHeaderConverter_ConvertTo_InstanceDescriptor_ReturnsExpected(ColumnHeader value, Type[] parameterTypes, object[] arguments) { var converter = new ColumnHeaderConverter(); InstanceDescriptor descriptor = Assert.IsType <InstanceDescriptor>(converter.ConvertTo(value, typeof(InstanceDescriptor))); Assert.Equal(value.GetType().GetConstructor(parameterTypes), descriptor.MemberInfo); Assert.Equal(arguments, descriptor.Arguments); }
private void InitializeComponent() { this.icontainer_0 = new Container(); this.panel1 = new Panel(); this.groupBox2 = new GroupBox(); this.listView1 = new ListView(); this.columnHeader_0 = new ColumnHeader(); this.columnHeader_1 = new ColumnHeader(); this.columnHeader_2 = new ColumnHeader(); this.columnHeader_3 = new ColumnHeader(); this.imageList_0 = new ImageList(this.icontainer_0); this.toolStrip1 = new ToolStrip(); this.btnAdd = new ToolStripButton(); this.btnEdit = new ToolStripButton(); this.btnDelete = new ToolStripButton(); this.panel2 = new Panel(); this.btnImport = new Button(); this.btnCancel = new Button(); this.btnOK = new Button(); this.groupBox1 = new GroupBox(); this.cboCommandType = new ComboBox(); this.label3 = new Label(); this.txtDataBase = new TextBox(); this.label2 = new Label(); this.txtName = new TextBox(); this.label1 = new Label(); this.splitter1 = new Splitter(); this.txtCode = new SyntaxHighlighterControl(); this.label4 = new Label(); this.nudTimeout = new NumericUpDown(); this.panel1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.toolStrip1.SuspendLayout(); this.panel2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.nudTimeout.BeginInit(); base.SuspendLayout(); this.panel1.Controls.Add(this.groupBox2); this.panel1.Controls.Add(this.panel2); this.panel1.Controls.Add(this.groupBox1); this.panel1.Dock = DockStyle.Right; this.panel1.Location = new Point(0x296, 3); this.panel1.Name = "panel1"; this.panel1.Size = new Size(0x189, 0x214); this.panel1.TabIndex = 0; this.groupBox2.Controls.Add(this.listView1); this.groupBox2.Controls.Add(this.toolStrip1); this.groupBox2.Dock = DockStyle.Fill; this.groupBox2.Location = new Point(0, 0x73); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new Size(0x189, 0x176); this.groupBox2.TabIndex = 2; this.groupBox2.TabStop = false; this.groupBox2.Text = "命令参数"; this.listView1.Columns.AddRange(new ColumnHeader[] { this.columnHeader_0, this.columnHeader_1, this.columnHeader_2, this.columnHeader_3 }); this.listView1.Dock = DockStyle.Fill; this.listView1.FullRowSelect = true; this.listView1.HideSelection = false; this.listView1.Location = new Point(3, 0x2a); this.listView1.MultiSelect = false; this.listView1.Name = "listView1"; this.listView1.Size = new Size(0x183, 0x149); this.listView1.SmallImageList = this.imageList_0; this.listView1.TabIndex = 1; this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.View = View.Details; this.listView1.ItemActivate += new EventHandler(this.btnEdit_Click); this.listView1.Resize += new EventHandler(this.listView1_Resize); this.columnHeader_0.Text = "Name"; this.columnHeader_0.Width = 0x8e; this.columnHeader_1.Text = "Type"; this.columnHeader_1.Width = 0x54; this.columnHeader_2.Text = "Direction"; this.columnHeader_2.Width = 0x4e; this.columnHeader_3.Text = "Size"; this.columnHeader_3.TextAlign = HorizontalAlignment.Right; this.columnHeader_3.Width = 0x37; this.imageList_0.ColorDepth = ColorDepth.Depth8Bit; this.imageList_0.ImageSize = new Size(0x10, 0x10); this.imageList_0.TransparentColor = Color.Transparent; this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.btnAdd, this.btnEdit, this.btnDelete }); this.toolStrip1.Location = new Point(3, 0x11); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new Size(0x183, 0x19); this.toolStrip1.TabIndex = 0; this.toolStrip1.Text = "toolStrip1"; //this.btnAdd.Image = Resources.NewDocumentHS; this.btnAdd.ImageTransparentColor = Color.Magenta; this.btnAdd.Name = "btnAdd"; this.btnAdd.Size = new Size(0x33, 0x16); this.btnAdd.Text = "新增"; this.btnAdd.Click += new EventHandler(this.btnAdd_Click); // this.btnEdit.Image = Resources.EditTableHS; this.btnEdit.ImageTransparentColor = Color.Magenta; this.btnEdit.Name = "btnEdit"; this.btnEdit.Size = new Size(0x33, 0x16); this.btnEdit.Text = "修改"; this.btnEdit.Click += new EventHandler(this.btnEdit_Click); //this.btnDelete.Image = Resources.DeleteHS; this.btnDelete.ImageTransparentColor = Color.Magenta; this.btnDelete.Name = "btnDelete"; this.btnDelete.Size = new Size(0x33, 0x16); this.btnDelete.Text = "删除"; this.btnDelete.Click += new EventHandler(this.btnDelete_Click); this.panel2.Controls.Add(this.btnImport); this.panel2.Controls.Add(this.btnCancel); this.panel2.Controls.Add(this.btnOK); this.panel2.Dock = DockStyle.Bottom; this.panel2.Location = new Point(0, 0x1e9); this.panel2.Name = "panel2"; this.panel2.Size = new Size(0x189, 0x2b); this.panel2.TabIndex = 1; this.btnImport.Location = new Point(7, 10); this.btnImport.Name = "btnImport"; this.btnImport.Size = new Size(100, 0x17); this.btnImport.TabIndex = 2; this.btnImport.Text = "从剪切板导入"; this.btnImport.UseVisualStyleBackColor = true; this.btnImport.Visible = false; this.btnImport.Click += new EventHandler(this.btnImport_Click); this.btnCancel.Anchor = AnchorStyles.Right | AnchorStyles.Top; this.btnCancel.DialogResult = DialogResult.Cancel; this.btnCancel.Location = new Point(0x12d, 10); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new Size(0x4b, 0x17); this.btnCancel.TabIndex = 1; this.btnCancel.Text = "取消(&C)"; this.btnCancel.UseVisualStyleBackColor = true; this.btnOK.Anchor = AnchorStyles.Right | AnchorStyles.Top; this.btnOK.Location = new Point(0xce, 10); this.btnOK.Name = "btnOK"; this.btnOK.Size = new Size(0x4b, 0x17); this.btnOK.TabIndex = 0; this.btnOK.Text = "确定(&K)"; this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new EventHandler(this.btnOK_Click); this.groupBox1.Controls.Add(this.nudTimeout); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.cboCommandType); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.txtDataBase); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.txtName); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Dock = DockStyle.Top; this.groupBox1.Location = new Point(0, 0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new Size(0x189, 0x73); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "基本信息"; this.cboCommandType.DropDownStyle = ComboBoxStyle.DropDownList; this.cboCommandType.FormattingEnabled = true; this.cboCommandType.Location = new Point(0x3e, 0x4c); this.cboCommandType.Name = "cboCommandType"; this.cboCommandType.Size = new Size(0xae, 20); this.cboCommandType.TabIndex = 5; this.label3.AutoSize = true; this.label3.Location = new Point(10, 80); this.label3.Name = "label3"; this.label3.Size = new Size(0x1d, 12); this.label3.TabIndex = 4; this.label3.Text = "类型"; this.txtDataBase.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.txtDataBase.Font = new Font("Courier New", 9f, FontStyle.Regular, GraphicsUnit.Point, 0); this.txtDataBase.Location = new Point(0x3e, 0x2d); this.txtDataBase.Name = "txtDataBase"; this.txtDataBase.Size = new Size(0x13e, 0x15); this.txtDataBase.TabIndex = 3; this.label2.AutoSize = true; this.label2.Location = new Point(10, 50); this.label2.Name = "label2"; this.label2.Size = new Size(0x29, 12); this.label2.TabIndex = 2; this.label2.Text = "数据库"; this.txtName.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.txtName.Font = new Font("Courier New", 9f, FontStyle.Regular, GraphicsUnit.Point, 0); this.txtName.Location = new Point(0x3e, 0x12); this.txtName.Name = "txtName"; this.txtName.Size = new Size(0x13e, 0x15); this.txtName.TabIndex = 1; this.label1.AutoSize = true; this.label1.ForeColor = Color.Red; this.label1.Location = new Point(10, 0x17); this.label1.Name = "label1"; this.label1.Size = new Size(0x23, 12); this.label1.TabIndex = 0; this.label1.Text = "名称*"; this.splitter1.Dock = DockStyle.Right; this.splitter1.Location = new Point(0x28f, 3); this.splitter1.Name = "splitter1"; this.splitter1.Size = new Size(7, 0x214); this.splitter1.TabIndex = 1; this.splitter1.TabStop = false; this.txtCode.Dock = DockStyle.Fill; this.txtCode.Location = new Point(3, 3); this.txtCode.Name = "txtCode"; this.txtCode.method_6(false); this.txtCode.Size = new Size(0x28c, 0x214); this.txtCode.TabIndex = 2; this.label4.AutoSize = true; this.label4.Location = new Point(0xf3, 80); this.label4.Name = "label4"; this.label4.Size = new Size(0x35, 12); this.label4.TabIndex = 6; this.label4.Text = "超时(秒)"; this.nudTimeout.Font = new Font("Courier New", 9f); this.nudTimeout.Location = new Point(0x12d, 0x4c); int[] bits = new int[4]; bits[0] = 0x186a0; this.nudTimeout.Maximum = new decimal(bits); this.nudTimeout.Name = "nudTimeout"; this.nudTimeout.Size = new Size(0x4f, 0x15); this.nudTimeout.TabIndex = 7; bits = new int[4]; bits[0] = 30; this.nudTimeout.Value = new decimal(bits); base.AutoScaleDimensions = new SizeF(6f, 12f); base.AutoScaleMode = AutoScaleMode.Font; base.CancelButton = this.btnCancel; base.ClientSize = new Size(0x422, 0x21a); base.Controls.Add(this.txtCode); base.Controls.Add(this.splitter1); base.Controls.Add(this.panel1); base.MinimizeBox = false; base.Name = "EditCommandDialog"; base.Padding = new Padding(3); base.ShowIcon = false; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.CenterScreen; this.Text = "新增命令"; base.Load += new EventHandler(this.EditCommandDialog_Load); base.Shown += new EventHandler(this.EditCommandDialog_Shown); this.panel1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.panel2.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.nudTimeout.EndInit(); base.ResumeLayout(false); }
private void BuildCustomerListView(Gizmox.WebGUI.Forms.ListView lv) { lv.BorderStyle = BorderStyle.None; lv.HeaderStyle = ColumnHeaderStyle.None; var ch = new ColumnHeader(); ch.Text = ""; ch.Width = 16; ch.Type = ListViewColumnType.Control; ch.PreferedItemHeight = 16; lvMain.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = ""; ch.Width = 300; ch.Type = ListViewColumnType.Control; lvMain.Columns.Add(ch); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); ComponentResourceManager resources = new ComponentResourceManager(typeof(MapListForm)); this.MapList = new ListView(); this.MapHdr = new ColumnHeader(); this.ListContext = new System.Windows.Forms.ContextMenuStrip(this.components); this.ListContextAdd = new ToolStripMenuItem(); this.ListContextRemove = new ToolStripMenuItem(); this.ListContextEdit = new ToolStripMenuItem(); this.toolStripMenuItem1 = new ToolStripSeparator(); this.ListContextCategory = new ToolStripMenuItem(); this.toolStripMenuItem2 = new ToolStripSeparator(); this.ListContextDelve = new ToolStripMenuItem(); this.ListContextBreakdown = new ToolStripMenuItem(); this.ListToolbar = new ToolStrip(); this.AddBtn = new ToolStripDropDownButton(); this.AddBuild = new ToolStripMenuItem(); this.toolStripSeparator5 = new ToolStripSeparator(); this.AddImport = new ToolStripMenuItem(); this.AddImportProject = new ToolStripMenuItem(); this.toolStripSeparator3 = new ToolStripSeparator(); this.AddTile = new ToolStripMenuItem(); this.RemoveBtn = new ToolStripButton(); this.EditBtn = new ToolStripButton(); this.Splitter = new SplitContainer(); this.MapView = new Masterplan.Controls.MapView(); this.MapToolbar = new ToolStrip(); this.PrintMenu = new ToolStripDropDownButton(); this.PrintMap = new ToolStripMenuItem(); this.PrintBlank = new ToolStripMenuItem(); this.ToolsBtn = new ToolStripDropDownButton(); this.ToolsCategory = new ToolStripMenuItem(); this.ToolsBreakdown = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.ToolsScreenshot = new ToolStripMenuItem(); this.ToolsPlayerView = new ToolStripMenuItem(); this.DelveBtn = new ToolStripDropDownButton(); this.DelveAutoBuild = new ToolStripMenuItem(); this.DelveAdvanced = new ToolStripMenuItem(); this.toolStripSeparator4 = new ToolStripSeparator(); this.DelveDeck = new ToolStripMenuItem(); this.toolStripSeparator2 = new ToolStripSeparator(); this.AreaLbl = new ToolStripLabel(); this.AreaBox = new ToolStripComboBox(); this.CloseBtn = new Button(); this.ListContext.SuspendLayout(); this.ListToolbar.SuspendLayout(); this.Splitter.Panel1.SuspendLayout(); this.Splitter.Panel2.SuspendLayout(); this.Splitter.SuspendLayout(); this.MapToolbar.SuspendLayout(); base.SuspendLayout(); this.MapList.Columns.AddRange(new ColumnHeader[] { this.MapHdr }); this.MapList.ContextMenuStrip = this.ListContext; this.MapList.Dock = DockStyle.Fill; this.MapList.FullRowSelect = true; this.MapList.HeaderStyle = ColumnHeaderStyle.Nonclickable; this.MapList.HideSelection = false; this.MapList.Location = new Point(0, 25); this.MapList.MultiSelect = false; this.MapList.Name = "MapList"; this.MapList.Size = new System.Drawing.Size(199, 317); this.MapList.TabIndex = 1; this.MapList.UseCompatibleStateImageBehavior = false; this.MapList.View = View.Details; this.MapList.SelectedIndexChanged += new EventHandler(this.MapList_SelectedIndexChanged); this.MapList.DoubleClick += new EventHandler(this.EditBtn_Click); this.MapHdr.Text = "Map"; this.MapHdr.Width = 172; ToolStripItem[] listContextAdd = new ToolStripItem[] { this.ListContextAdd, this.ListContextRemove, this.ListContextEdit, this.toolStripMenuItem1, this.ListContextCategory, this.toolStripMenuItem2, this.ListContextDelve, this.ListContextBreakdown }; this.ListContext.Items.AddRange(listContextAdd); this.ListContext.Name = "ListContext"; this.ListContext.Size = new System.Drawing.Size(160, 148); this.ListContextAdd.Name = "ListContextAdd"; this.ListContextAdd.Size = new System.Drawing.Size(159, 22); this.ListContextAdd.Text = "Add..."; this.ListContextRemove.Name = "ListContextRemove"; this.ListContextRemove.Size = new System.Drawing.Size(159, 22); this.ListContextRemove.Text = "Remove"; this.ListContextRemove.Click += new EventHandler(this.RemoveBtn_Click); this.ListContextEdit.Name = "ListContextEdit"; this.ListContextEdit.Size = new System.Drawing.Size(159, 22); this.ListContextEdit.Text = "Edit"; this.ListContextEdit.Click += new EventHandler(this.EditBtn_Click); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new System.Drawing.Size(156, 6); this.ListContextCategory.Name = "ListContextCategory"; this.ListContextCategory.Size = new System.Drawing.Size(159, 22); this.ListContextCategory.Text = "Set Category..."; this.ListContextCategory.Click += new EventHandler(this.ToolsCategory_Click); this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new System.Drawing.Size(156, 6); this.ListContextDelve.Name = "ListContextDelve"; this.ListContextDelve.Size = new System.Drawing.Size(159, 22); this.ListContextDelve.Text = "Delve AutoBuild"; this.ListContextDelve.Click += new EventHandler(this.DelveBtn_Click); this.ListContextBreakdown.Name = "ListContextBreakdown"; this.ListContextBreakdown.Size = new System.Drawing.Size(159, 22); this.ListContextBreakdown.Text = "Tile Breakdown"; this.ListContextBreakdown.Click += new EventHandler(this.ToolsBreakdown_Click); ToolStripItem[] addBtn = new ToolStripItem[] { this.AddBtn, this.RemoveBtn, this.EditBtn }; this.ListToolbar.Items.AddRange(addBtn); this.ListToolbar.Location = new Point(0, 0); this.ListToolbar.Name = "ListToolbar"; this.ListToolbar.Size = new System.Drawing.Size(199, 25); this.ListToolbar.TabIndex = 0; this.ListToolbar.Text = "toolStrip1"; this.AddBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; ToolStripItem[] addBuild = new ToolStripItem[] { this.AddBuild, this.toolStripSeparator5, this.AddImport, this.AddImportProject, this.toolStripSeparator3, this.AddTile }; this.AddBtn.DropDownItems.AddRange(addBuild); this.AddBtn.Image = (Image)resources.GetObject("AddBtn.Image"); this.AddBtn.ImageTransparentColor = Color.Magenta; this.AddBtn.Name = "AddBtn"; this.AddBtn.Size = new System.Drawing.Size(42, 22); this.AddBtn.Text = "Add"; this.AddBuild.Name = "AddBuild"; this.AddBuild.Size = new System.Drawing.Size(209, 22); this.AddBuild.Text = "Build a Map..."; this.AddBuild.Click += new EventHandler(this.AddBuild_Click); this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new System.Drawing.Size(206, 6); this.AddImport.Name = "AddImport"; this.AddImport.Size = new System.Drawing.Size(209, 22); this.AddImport.Text = "Import Map Image..."; this.AddImport.Click += new EventHandler(this.AddImport_Click); this.AddImportProject.Name = "AddImportProject"; this.AddImportProject.Size = new System.Drawing.Size(209, 22); this.AddImportProject.Text = "Import from Project File..."; this.AddImportProject.Click += new EventHandler(this.AddImportProject_Click); this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(206, 6); this.AddTile.Name = "AddTile"; this.AddTile.Size = new System.Drawing.Size(209, 22); this.AddTile.Text = "Use Map Tile..."; this.AddTile.Click += new EventHandler(this.AddTile_Click); this.RemoveBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; this.RemoveBtn.Image = (Image)resources.GetObject("RemoveBtn.Image"); this.RemoveBtn.ImageTransparentColor = Color.Magenta; this.RemoveBtn.Name = "RemoveBtn"; this.RemoveBtn.Size = new System.Drawing.Size(54, 22); this.RemoveBtn.Text = "Remove"; this.RemoveBtn.Click += new EventHandler(this.RemoveBtn_Click); this.EditBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; this.EditBtn.Image = (Image)resources.GetObject("EditBtn.Image"); this.EditBtn.ImageTransparentColor = Color.Magenta; this.EditBtn.Name = "EditBtn"; this.EditBtn.Size = new System.Drawing.Size(31, 22); this.EditBtn.Text = "Edit"; this.EditBtn.Click += new EventHandler(this.EditBtn_Click); this.Splitter.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.Splitter.Location = new Point(12, 12); this.Splitter.Name = "Splitter"; this.Splitter.Panel1.Controls.Add(this.MapList); this.Splitter.Panel1.Controls.Add(this.ListToolbar); this.Splitter.Panel2.Controls.Add(this.MapView); this.Splitter.Panel2.Controls.Add(this.MapToolbar); this.Splitter.Size = new System.Drawing.Size(750, 342); this.Splitter.SplitterDistance = 199; this.Splitter.TabIndex = 11; this.MapView.AllowDrawing = false; this.MapView.AllowDrop = true; this.MapView.AllowLinkCreation = false; this.MapView.AllowScrolling = false; this.MapView.BackgroundMap = null; this.MapView.BorderSize = 1; this.MapView.BorderStyle = BorderStyle.FixedSingle; this.MapView.Caption = ""; this.MapView.Cursor = Cursors.Default; this.MapView.Dock = DockStyle.Fill; this.MapView.Encounter = null; this.MapView.FrameType = MapDisplayType.Dimmed; this.MapView.HighlightAreas = false; this.MapView.HoverToken = null; this.MapView.LineOfSight = false; this.MapView.Location = new Point(0, 25); this.MapView.Map = null; this.MapView.Mode = MapViewMode.Thumbnail; this.MapView.Name = "MapView"; this.MapView.Plot = null; this.MapView.ScalingFactor = 1; this.MapView.SelectedArea = null; this.MapView.SelectedTiles = null; this.MapView.Selection = new Rectangle(0, 0, 0, 0); this.MapView.ShowAuras = true; this.MapView.ShowConditions = true; this.MapView.ShowCreatureLabels = true; this.MapView.ShowCreatures = CreatureViewMode.All; this.MapView.ShowGrid = MapGridMode.None; this.MapView.ShowGridLabels = false; this.MapView.ShowHealthBars = false; this.MapView.ShowPictureTokens = true; this.MapView.Size = new System.Drawing.Size(547, 317); this.MapView.TabIndex = 0; this.MapView.Tactical = false; this.MapView.TokenLinks = null; this.MapView.Viewpoint = new Rectangle(0, 0, 0, 0); ToolStripItem[] printMenu = new ToolStripItem[] { this.PrintMenu, this.ToolsBtn, this.DelveBtn, this.toolStripSeparator2, this.AreaLbl, this.AreaBox }; this.MapToolbar.Items.AddRange(printMenu); this.MapToolbar.Location = new Point(0, 0); this.MapToolbar.Name = "MapToolbar"; this.MapToolbar.Size = new System.Drawing.Size(547, 25); this.MapToolbar.TabIndex = 1; this.MapToolbar.Text = "toolStrip1"; this.PrintMenu.DisplayStyle = ToolStripItemDisplayStyle.Text; ToolStripItem[] printMap = new ToolStripItem[] { this.PrintMap, this.PrintBlank }; this.PrintMenu.DropDownItems.AddRange(printMap); this.PrintMenu.Image = (Image)resources.GetObject("PrintMenu.Image"); this.PrintMenu.ImageTransparentColor = Color.Magenta; this.PrintMenu.Name = "PrintMenu"; this.PrintMenu.Size = new System.Drawing.Size(45, 22); this.PrintMenu.Text = "Print"; this.PrintMap.Name = "PrintMap"; this.PrintMap.Size = new System.Drawing.Size(156, 22); this.PrintMap.Text = "Print Map..."; this.PrintMap.Click += new EventHandler(this.PrintMap_Click); this.PrintBlank.Name = "PrintBlank"; this.PrintBlank.Size = new System.Drawing.Size(156, 22); this.PrintBlank.Text = "Print Blank Grid"; this.PrintBlank.Click += new EventHandler(this.PrintBlank_Click); this.ToolsBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; ToolStripItem[] toolsCategory = new ToolStripItem[] { this.ToolsCategory, this.ToolsBreakdown, this.toolStripSeparator1, this.ToolsScreenshot, this.ToolsPlayerView }; this.ToolsBtn.DropDownItems.AddRange(toolsCategory); this.ToolsBtn.Image = (Image)resources.GetObject("ToolsBtn.Image"); this.ToolsBtn.ImageTransparentColor = Color.Magenta; this.ToolsBtn.Name = "ToolsBtn"; this.ToolsBtn.Size = new System.Drawing.Size(49, 22); this.ToolsBtn.Text = "Tools"; this.ToolsCategory.Name = "ToolsCategory"; this.ToolsCategory.Size = new System.Drawing.Size(177, 22); this.ToolsCategory.Text = "Set Category..."; this.ToolsCategory.Click += new EventHandler(this.ToolsCategory_Click); this.ToolsBreakdown.Name = "ToolsBreakdown"; this.ToolsBreakdown.Size = new System.Drawing.Size(177, 22); this.ToolsBreakdown.Text = "Tile Breakdown"; this.ToolsBreakdown.Click += new EventHandler(this.ToolsBreakdown_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(174, 6); this.ToolsScreenshot.Name = "ToolsScreenshot"; this.ToolsScreenshot.Size = new System.Drawing.Size(177, 22); this.ToolsScreenshot.Text = "Export Map"; this.ToolsScreenshot.Click += new EventHandler(this.ToolsExport_Click); this.ToolsPlayerView.Name = "ToolsPlayerView"; this.ToolsPlayerView.Size = new System.Drawing.Size(177, 22); this.ToolsPlayerView.Text = "Send to Player View"; this.ToolsPlayerView.Click += new EventHandler(this.ToolsPlayerView_Click); this.DelveBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; ToolStripItem[] delveAutoBuild = new ToolStripItem[] { this.DelveAutoBuild, this.DelveAdvanced, this.toolStripSeparator4, this.DelveDeck }; this.DelveBtn.DropDownItems.AddRange(delveAutoBuild); this.DelveBtn.Image = (Image)resources.GetObject("DelveBtn.Image"); this.DelveBtn.ImageTransparentColor = Color.Magenta; this.DelveBtn.Name = "DelveBtn"; this.DelveBtn.Size = new System.Drawing.Size(105, 22); this.DelveBtn.Text = "Delve AutoBuild"; this.DelveAutoBuild.Name = "DelveAutoBuild"; this.DelveAutoBuild.Size = new System.Drawing.Size(245, 22); this.DelveAutoBuild.Text = "Build a Delve"; this.DelveAutoBuild.Click += new EventHandler(this.DelveBtn_Click); this.DelveAdvanced.Name = "DelveAdvanced"; this.DelveAdvanced.Size = new System.Drawing.Size(245, 22); this.DelveAdvanced.Text = "Advanced Options..."; this.DelveAdvanced.Click += new EventHandler(this.DelveAdvanced_Click); this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new System.Drawing.Size(242, 6); this.DelveDeck.Name = "DelveDeck"; this.DelveDeck.Size = new System.Drawing.Size(245, 22); this.DelveDeck.Text = "Build Using an Encounter Deck..."; this.DelveDeck.Click += new EventHandler(this.DelveDeck_Click); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); this.AreaLbl.Name = "AreaLbl"; this.AreaLbl.Size = new System.Drawing.Size(39, 22); this.AreaLbl.Text = "Show:"; this.AreaBox.DropDownStyle = ComboBoxStyle.DropDownList; this.AreaBox.Name = "AreaBox"; this.AreaBox.Size = new System.Drawing.Size(121, 25); this.AreaBox.SelectedIndexChanged += new EventHandler(this.AreaBox_SelectedIndexChanged); this.CloseBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.CloseBtn.DialogResult = System.Windows.Forms.DialogResult.OK; this.CloseBtn.Location = new Point(687, 360); this.CloseBtn.Name = "CloseBtn"; this.CloseBtn.Size = new System.Drawing.Size(75, 23); this.CloseBtn.TabIndex = 12; this.CloseBtn.Text = "Close"; this.CloseBtn.UseVisualStyleBackColor = true; base.AcceptButton = this.CloseBtn; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(774, 395); base.Controls.Add(this.CloseBtn); base.Controls.Add(this.Splitter); base.MinimizeBox = false; base.Name = "MapListForm"; base.ShowIcon = false; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Tactical Maps"; this.ListContext.ResumeLayout(false); this.ListToolbar.ResumeLayout(false); this.ListToolbar.PerformLayout(); this.Splitter.Panel1.ResumeLayout(false); this.Splitter.Panel1.PerformLayout(); this.Splitter.Panel2.ResumeLayout(false); this.Splitter.Panel2.PerformLayout(); this.Splitter.ResumeLayout(false); this.MapToolbar.ResumeLayout(false); this.MapToolbar.PerformLayout(); base.ResumeLayout(false); }
private void BindBodyPartData() { DataTable dtBodypart = _bpm.GetAllBodypartInfo(cbxImageKind.Text); foreach (DataColumn dc in dtBodypart.Columns) { if (("部位名称,分组标记").IndexOf(dc.Caption) >= 0) { ColumnHeader columnHeader = new ColumnHeader(); columnHeader.Text = dc.Caption; columnHeader.Name = dc.Caption; columnHeader.Width = 200; listView1.Columns.Add(columnHeader); } } DataTable dtGroup = _bpm.GetBodypartGroups(cbxImageKind.Text); foreach (DataRow dr in dtGroup.Rows) { string groupTag = dr["分组标记"].ToString(); string groupName = (string.IsNullOrEmpty(groupTag)) ? "未分组" : groupTag; ListViewGroup lvg = new ListViewGroup(groupName); listView1.Groups.Add(lvg); if (cbxBodypartGroup.Items.IndexOf(groupTag) < 0) { cbxBodypartGroup.Items.Add(groupTag); } } foreach (DataRow drItem in dtBodypart.Rows) { BodypartInfoData bodypartData = new BodypartInfoData(); bodypartData.BindRowData(drItem); string gn = (string.IsNullOrEmpty(bodypartData.分组标记)) ? "未分组" : bodypartData.分组标记; ListViewGroup lvgCur = GetCurGroup(gn); ListViewItem itemNew = new ListViewItem(new string[] { bodypartData.部位名称, gn }, 0, lvgCur); //添加部位后需要定位。新增查找项 itemNew.Name = bodypartData.部位ID; itemNew.Tag = bodypartData; //初始化科室内的方法名称,附加方法 foreach (JBodypartWay jb in bodypartData.部位信息.互斥方法) { if (cbxBodypartWayName.Items.IndexOf(jb.方法名称) < 0) { cbxBodypartWayName.Items.Add(jb.方法名称); } foreach (string item in jb.附加方法) { AddAttachWay(item); } } foreach (JBodypartWay jb in bodypartData.部位信息.共用方法) { if (cbxBodypartWayName.Items.IndexOf(jb.方法名称) < 0) { cbxBodypartWayName.Items.Add(jb.方法名称); } foreach (string item in jb.附加方法) { AddAttachWay(item); } } listView1.Items.Add(itemNew); } listView1.View = View.Details; }
private Gizmox.WebGUI.Forms.ListView BuildOrderLinesListView() { var lv = new Gizmox.WebGUI.Forms.ListView(); lv.BorderStyle = BorderStyle.None; lv.HeaderStyle = ColumnHeaderStyle.None; var ch = new ColumnHeader(); ch.Text = "Quantity"; ch.Width = 30; ch.Type = ListViewColumnType.Text; ch.PreferedItemHeight = 16; lv.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "Product"; ch.Width = 300; ch.Type = ListViewColumnType.Text; ch.PreferedItemHeight = 16; lv.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = "Price"; ch.Width = 100; ch.Type = ListViewColumnType.Text; ch.PreferedItemHeight = 16; lv.Columns.Add(ch); return lv; }
public void SetColumnDisplayHtml(ColumnHeader column) { ext.SetIsShowHtml(column, true); }
/// <summary> /// Initializes a new instance of the ColumnMovedEventArgs class. /// </summary> /// <param name="column">Column affected</param> /// <param name="oldColumnDisplayIndex">Old display index</param> /// <param name="newColumnDisplayIndex">New display index</param> public ColumnMovedEventArgs(ColumnHeader column, int oldColumnDisplayIndex, int newColumnDisplayIndex) : base(column) { OldColumnDisplayIndex = oldColumnDisplayIndex; NewColumnDisplayIndex = newColumnDisplayIndex; }
public Okno() { Text = "Projekt"; Size = new Size(480, 360); ToolStripMenuItem plik = new ToolStripMenuItem("Plik"); ms.Items.Add(plik); ToolStripMenuItem obliczenia = new ToolStripMenuItem("Obliczenia"); ms.Items.Add(obliczenia); ToolStripMenuItem import = new ToolStripMenuItem("Import"); import.ShortcutKeys = Keys.Control | Keys.I; plik.DropDownItems.Add(import); ToolStripMenuItem odczyt = new ToolStripMenuItem("Odczyt"); odczyt.ShortcutKeys = Keys.Control | Keys.O; plik.DropDownItems.Add(odczyt); ToolStripMenuItem zapis = new ToolStripMenuItem("Zapis"); zapis.ShortcutKeys = Keys.Control | Keys.S; plik.DropDownItems.Add(zapis); ToolStripMenuItem zamknij = new ToolStripMenuItem("Zamknij plik"); zamknij.ShortcutKeys = Keys.Control | Keys.C; plik.DropDownItems.Add(zamknij); ToolStripMenuItem wyjscie = new ToolStripMenuItem("Wyjście"); wyjscie.ShortcutKeys = Keys.Control | Keys.X; plik.DropDownItems.Add(wyjscie); ToolStripMenuItem srednia = new ToolStripMenuItem("Średnia"); obliczenia.DropDownItems.Add(srednia); ToolStripMenuItem suma = new ToolStripMenuItem("Suma"); obliczenia.DropDownItems.Add(suma); ToolStripMenuItem mediana = new ToolStripMenuItem("Mediana"); obliczenia.DropDownItems.Add(mediana); ToolStripMenuItem temp; temp = new ToolStripMenuItem("NO2"); temp.Click += (object sender, EventArgs e) => { Metody.Srednia("NO2"); }; srednia.DropDownItems.Add(temp); temp = new ToolStripMenuItem("NO2"); temp.Click += (object sender, EventArgs e) => { Metody.Suma("NO2"); }; suma.DropDownItems.Add(temp); temp = new ToolStripMenuItem("NO2"); temp.Click += (object sender, EventArgs e) => { Metody.Mediana("NO2"); }; mediana.DropDownItems.Add(temp); temp = new ToolStripMenuItem("SO2"); temp.Click += (object sender, EventArgs e) => { Metody.Srednia("SO2"); }; srednia.DropDownItems.Add(temp); temp = new ToolStripMenuItem("SO2"); temp.Click += (object sender, EventArgs e) => { Metody.Suma("SO2"); }; suma.DropDownItems.Add(temp); temp = new ToolStripMenuItem("SO2"); temp.Click += (object sender, EventArgs e) => { Metody.Mediana("SO2"); }; mediana.DropDownItems.Add(temp); temp = new ToolStripMenuItem("CO"); temp.Click += (object sender, EventArgs e) => { Metody.Srednia("CO"); }; srednia.DropDownItems.Add(temp); temp = new ToolStripMenuItem("CO"); temp.Click += (object sender, EventArgs e) => { Metody.Suma("CO"); }; suma.DropDownItems.Add(temp); temp = new ToolStripMenuItem("CO"); temp.Click += (object sender, EventArgs e) => { Metody.Mediana("CO"); }; mediana.DropDownItems.Add(temp); temp = new ToolStripMenuItem("PM2,5"); temp.Click += (object sender, EventArgs e) => { Metody.Srednia("PM25"); }; srednia.DropDownItems.Add(temp); temp = new ToolStripMenuItem("PM2,5"); temp.Click += (object sender, EventArgs e) => { Metody.Suma("PM25"); }; suma.DropDownItems.Add(temp); temp = new ToolStripMenuItem("PM2,5"); temp.Click += (object sender, EventArgs e) => { Metody.Mediana("PM25"); }; mediana.DropDownItems.Add(temp); temp = new ToolStripMenuItem("PM10"); temp.Click += (object sender, EventArgs e) => { Metody.Srednia("PM10"); }; srednia.DropDownItems.Add(temp); temp = new ToolStripMenuItem("PM10"); temp.Click += (object sender, EventArgs e) => { Metody.Suma("PM10"); }; suma.DropDownItems.Add(temp); temp = new ToolStripMenuItem("PM10"); temp.Click += (object sender, EventArgs e) => { Metody.Mediana("PM10"); }; mediana.DropDownItems.Add(temp); import.Click += Import; odczyt.Click += Odczyt; zapis.Click += Zapis; zamknij.Click += Zamknij; wyjscie.Click += OnExit; Controls.Add(ms); MainMenuStrip = ms; ms.Dock = DockStyle.Top; ColumnHeader godzina = new ColumnHeader(); godzina.Text = "Godzina"; ColumnHeader no2 = new ColumnHeader(); no2.Text = "NO2"; ColumnHeader so2 = new ColumnHeader(); so2.Text = "SO2"; ColumnHeader co = new ColumnHeader(); co.Text = "CO"; ColumnHeader pm25 = new ColumnHeader(); pm25.Text = "PM2,5"; ColumnHeader pm10 = new ColumnHeader(); pm10.Text = "PM10"; SuspendLayout(); lv.Hide(); lv.Parent = this; lv.FullRowSelect = true; lv.GridLines = true; lv.BringToFront(); lv.Columns.AddRange(new ColumnHeader[] { godzina, no2, so2, co, pm25, pm10 }); lv.Dock = DockStyle.Fill; lv.View = View.Details; ResumeLayout(); sb.Parent = this; sb.Text = "Gotowy"; editbox.Parent = lv; editbox.Hide(); editbox.LostFocus += lvLostFocus; lv.MouseDoubleClick += lvDoubleClick; lv.MouseClick += lvClick; CenterToScreen(); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); lblDescription = new System.Windows.Forms.Label(); btnImport = new System.Windows.Forms.Button(); btnExport = new System.Windows.Forms.Button(); btnDelete = new System.Windows.Forms.Button(); btnNew = new System.Windows.Forms.Button(); listFilters = new System.Windows.Forms.ListView(); nameHeader = new System.Windows.Forms.ColumnHeader(); descriptionHeader = new System.Windows.Forms.ColumnHeader(); expressionHeader = new System.Windows.Forms.ColumnHeader(); btnCancel = new System.Windows.Forms.Button(); btnOk = new System.Windows.Forms.Button(); SuspendLayout(); lblDescription.Name = "lblDescription"; lblDescription.Location = new System.Drawing.Point(10, 10); lblDescription.Size = new System.Drawing.Size(300, 20); lblDescription.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("CF_DlgDescription"); btnImport.Location = new System.Drawing.Point(380, 90); btnImport.Name = "btnImport"; btnImport.Size = new System.Drawing.Size(100, 23); btnImport.TabIndex = 5; btnImport.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("CF_Ibt"); btnImport.Click += new System.EventHandler(btnImport_Click); btnExport.Location = new System.Drawing.Point(380, 120); btnExport.Name = "btnExport"; btnExport.Size = new System.Drawing.Size(100, 23); btnExport.TabIndex = 6; btnExport.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("CF_Ebt"); btnExport.Click += new System.EventHandler(btnExport_Click); btnDelete.Location = new System.Drawing.Point(380, 60); btnDelete.Name = "btnDelete"; btnDelete.Size = new System.Drawing.Size(100, 23); btnDelete.TabIndex = 4; btnDelete.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("CF_Delete"); btnDelete.Click += new System.EventHandler(btnDelete_Click); btnNew.Location = new System.Drawing.Point(380, 30); btnNew.Name = "btnNew"; btnNew.Size = new System.Drawing.Size(100, 23); btnNew.TabIndex = 3; btnNew.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("CF_New"); btnNew.Click += new System.EventHandler(btnNew_Click); listFilters.Columns.AddRange(new System.Windows.Forms.ColumnHeader[3] { nameHeader, descriptionHeader, expressionHeader }); listFilters.FullRowSelect = true; listFilters.Location = new System.Drawing.Point(10, 30); listFilters.Name = "listFilters"; listFilters.ShowItemToolTips = true; listFilters.Size = new System.Drawing.Size(360, 265); listFilters.TabIndex = 2; listFilters.View = System.Windows.Forms.View.Details; listFilters.DoubleClick += new System.EventHandler(listFilters_DoubleClick); listFilters.SelectedIndexChanged += new System.EventHandler(listFilters_SelectedIndexChanged); nameHeader.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("CF_NameH"); nameHeader.Width = 90; descriptionHeader.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("CF_DescriptionH"); descriptionHeader.Width = 120; expressionHeader.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("CF_XEH"); expressionHeader.Width = 145; btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; btnCancel.Location = new System.Drawing.Point(380, 308); btnCancel.Name = "btnCancel"; btnCancel.Size = new System.Drawing.Size(75, 23); btnCancel.TabIndex = 1; btnCancel.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("Btn_Cancel"); btnCancel.Click += new System.EventHandler(btnCancel_Click); btnOk.Location = new System.Drawing.Point(295, 308); btnOk.Name = "btnOk"; btnOk.Size = new System.Drawing.Size(75, 23); btnOk.TabIndex = 0; btnOk.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("Btn_OK"); btnOk.Click += new System.EventHandler(btnOk_Click); base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.CancelButton = btnCancel; base.AcceptButton = btnOk; base.ClientSize = new System.Drawing.Size(490, 337); base.Controls.Add(lblDescription); base.Controls.Add(btnOk); base.Controls.Add(btnCancel); base.Controls.Add(btnImport); base.Controls.Add(btnExport); base.Controls.Add(btnDelete); base.Controls.Add(btnNew); base.Controls.Add(listFilters); base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "CustomFilterDialog"; base.ShowInTaskbar = false; base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("CF_CFTitle"); base.Load += new System.EventHandler(CustomFilterDialog_Load); base.Shown += new System.EventHandler(CustomFilterDialog_Shown); }
private Gizmox.WebGUI.Forms.ListView BuildOrderListView() { var lv = new Gizmox.WebGUI.Forms.ListView(); lv.BorderStyle = BorderStyle.None; lv.HeaderStyle = ColumnHeaderStyle.None; var ch = new ColumnHeader(); ch.Text = ""; ch.Width = 16; ch.Type = ListViewColumnType.Control; ch.PreferedItemHeight = 16; lv.Columns.Add(ch); ch = new ColumnHeader(); ch.Text = ""; ch.Width = 300; ch.Type = ListViewColumnType.Control; lv.Columns.Add(ch); return lv; }
private void ToBHFtQWwi() { this.C45HgqkAbh = (IContainer) new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(RegisteredTypesForm)); this.gVoHu4ORvw = new ListView(); this.kX6HJ9j5Vb = new ColumnHeader(); this.haNHO0x5w2 = new ColumnHeader(); this.U4OHnO0Xe4 = new ColumnHeader(); this.tGrH7RKFMj = new ColumnHeader(); this.J4rHL4wP1g = new ContextMenu(); this.Xw0HiZX7pt = new MenuItem(); this.Jv6H9wcoGe = new MenuItem(); this.CXlH3qCfgv = new MenuItem(); this.D5aHTymUR1 = new MenuItem(); this.jLGHWfxDA1 = new MenuItem(); this.kyyHyZmS0P = new ImageList(this.C45HgqkAbh); this.F6JHfovOkf = new ImageList(this.C45HgqkAbh); this.QQrHMdSmYx = new Button(); this.SuspendLayout(); this.gVoHu4ORvw.Columns.AddRange(new ColumnHeader[4] { this.kX6HJ9j5Vb, this.haNHO0x5w2, this.U4OHnO0Xe4, this.tGrH7RKFMj }); this.gVoHu4ORvw.ContextMenu = this.J4rHL4wP1g; this.gVoHu4ORvw.FullRowSelect = true; this.gVoHu4ORvw.LargeImageList = this.kyyHyZmS0P; this.gVoHu4ORvw.Location = new Point(16, 12); this.gVoHu4ORvw.Name = RNaihRhYEl0wUmAftnB.aYu7exFQKN(18736); this.gVoHu4ORvw.Size = new Size(496, 228); this.gVoHu4ORvw.SmallImageList = this.F6JHfovOkf; this.gVoHu4ORvw.TabIndex = 0; this.gVoHu4ORvw.UseCompatibleStateImageBehavior = false; this.kX6HJ9j5Vb.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(18756); this.kX6HJ9j5Vb.Width = 150; this.haNHO0x5w2.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(18778); this.haNHO0x5w2.TextAlign = HorizontalAlignment.Right; this.U4OHnO0Xe4.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(18796); this.U4OHnO0Xe4.TextAlign = HorizontalAlignment.Right; this.U4OHnO0Xe4.Width = 150; this.tGrH7RKFMj.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(18826); this.tGrH7RKFMj.TextAlign = HorizontalAlignment.Right; this.J4rHL4wP1g.MenuItems.AddRange(new MenuItem[1] { this.Xw0HiZX7pt }); this.Xw0HiZX7pt.Index = 0; this.Xw0HiZX7pt.MenuItems.AddRange(new MenuItem[4] { this.Jv6H9wcoGe, this.CXlH3qCfgv, this.D5aHTymUR1, this.jLGHWfxDA1 }); this.Xw0HiZX7pt.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(18844); this.Jv6H9wcoGe.Index = 0; this.Jv6H9wcoGe.RadioCheck = true; this.Jv6H9wcoGe.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(18856); this.Jv6H9wcoGe.Click += new EventHandler(this.zZwHVX7R9I); this.CXlH3qCfgv.Index = 1; this.CXlH3qCfgv.RadioCheck = true; this.CXlH3qCfgv.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(18882); this.CXlH3qCfgv.Click += new EventHandler(this.LU6HRCePXP); this.D5aHTymUR1.Index = 2; this.D5aHTymUR1.RadioCheck = true; this.D5aHTymUR1.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(18908); this.D5aHTymUR1.Click += new EventHandler(this.iJuHHOrtEo); this.jLGHWfxDA1.Index = 3; this.jLGHWfxDA1.RadioCheck = true; this.jLGHWfxDA1.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(18920); this.jLGHWfxDA1.Click += new EventHandler(this.SvqHk0E13J); this.kyyHyZmS0P.ImageStream = (ImageListStreamer)componentResourceManager.GetObject(RNaihRhYEl0wUmAftnB.aYu7exFQKN(18938)); this.kyyHyZmS0P.TransparentColor = Color.Transparent; this.kyyHyZmS0P.Images.SetKeyName(0, ""); this.F6JHfovOkf.ImageStream = (ImageListStreamer)componentResourceManager.GetObject(RNaihRhYEl0wUmAftnB.aYu7exFQKN(18986)); this.F6JHfovOkf.TransparentColor = Color.Transparent; this.F6JHfovOkf.Images.SetKeyName(0, ""); this.QQrHMdSmYx.DialogResult = DialogResult.Cancel; this.QQrHMdSmYx.Location = new Point(424, 248); this.QQrHMdSmYx.Name = RNaihRhYEl0wUmAftnB.aYu7exFQKN(19034); this.QQrHMdSmYx.Size = new Size(88, 24); this.QQrHMdSmYx.TabIndex = 3; this.QQrHMdSmYx.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(19054); this.AcceptButton = (IButtonControl)this.QQrHMdSmYx; this.AutoScaleBaseSize = new Size(5, 13); this.CancelButton = (IButtonControl)this.QQrHMdSmYx; this.ClientSize = new Size(530, 279); this.Controls.Add((Control)this.QQrHMdSmYx); this.Controls.Add((Control)this.gVoHu4ORvw); this.FormBorderStyle = FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = RNaihRhYEl0wUmAftnB.aYu7exFQKN(19068); this.ShowInTaskbar = false; this.StartPosition = FormStartPosition.CenterParent; this.Text = RNaihRhYEl0wUmAftnB.aYu7exFQKN(19110); this.ResumeLayout(false); }
/// <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.label1 = new System.Windows.Forms.Label(); this.liviLanguages = 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.btnCancel = new System.Windows.Forms.Button(); this.btnOk = new System.Windows.Forms.Button(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(12, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(104, 13); this.label1.TabIndex = 0; this.label1.Text = "Sprache auswählen:"; // // liviLanguages // this.liviLanguages.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2}); this.liviLanguages.FullRowSelect = true; this.liviLanguages.GridLines = true; this.liviLanguages.HideSelection = false; this.liviLanguages.Location = new System.Drawing.Point(15, 25); this.liviLanguages.MultiSelect = false; this.liviLanguages.Name = "liviLanguages"; this.liviLanguages.Size = new System.Drawing.Size(300, 140); this.liviLanguages.TabIndex = 1; this.liviLanguages.UseCompatibleStateImageBehavior = false; this.liviLanguages.View = System.Windows.Forms.View.Details; this.liviLanguages.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.liviLanguages_ColumnClick); this.liviLanguages.DoubleClick += new System.EventHandler(this.liviLanguages_DoubleClick); // // columnHeader1 // this.columnHeader1.Text = "Kürzel"; this.columnHeader1.Width = 51; // // columnHeader2 // this.columnHeader2.Text = "Beschreibung"; this.columnHeader2.Width = 245; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(195, 171); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(120, 23); this.btnCancel.TabIndex = 3; this.btnCancel.Text = "Abbrechen"; this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // btnOk // this.btnOk.Location = new System.Drawing.Point(69, 171); this.btnOk.Name = "btnOk"; this.btnOk.Size = new System.Drawing.Size(120, 23); this.btnOk.TabIndex = 2; this.btnOk.Text = "OK"; this.btnOk.UseVisualStyleBackColor = true; this.btnOk.Click += new System.EventHandler(this.btnOk_Click); // // SelectLanguage // this.AcceptButton = this.btnOk; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(329, 202); this.Controls.Add(this.btnOk); this.Controls.Add(this.btnCancel); this.Controls.Add(this.liviLanguages); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "SelectLanguage"; this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "### - SelectLanguage"; this.Load += new System.EventHandler(this.SelectProjectLanguage_Load); this.ResumeLayout(false); this.PerformLayout(); }
private void SetColumns() { Gizmox.WebGUI.Forms.ColumnHeader colInvtTxferId = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colLN = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colTxNumber = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colTxDate = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colOperator = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colFromLocation = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colToLocation = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colRemarks = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colCreatedOn = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colModifiedOn = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colTransferredOn = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colCompletedOn = new ColumnHeader(); Gizmox.WebGUI.Forms.ColumnHeader colTxType = new ColumnHeader(); // // colInvtTxferId // colInvtTxferId.Image = null; colInvtTxferId.Name = "colInvtTxferId"; colInvtTxferId.Text = "InvtTxferId"; colInvtTxferId.Visible = false; colInvtTxferId.Width = 150; // // colLN // colLN.ContentAlign = Gizmox.WebGUI.Forms.ExtendedHorizontalAlignment.Center; colLN.Image = null; colLN.Name = "colLN"; colLN.Text = WestwindHelper.GetWord("listview.line", "Tools"); colLN.TextAlign = Gizmox.WebGUI.Forms.HorizontalAlignment.Center; colLN.Width = 30; // // colTxNumber // colTxNumber.ContentAlign = ExtendedHorizontalAlignment.Center; colTxNumber.Image = null; colTxNumber.Name = "colTxNumber"; colTxNumber.Text = Utility.Dictionary.GetWord("TxNumber"); colTxNumber.TextAlign = HorizontalAlignment.Left; colTxNumber.Width = 110; // // colTxDate // colTxDate.ContentAlign = ExtendedHorizontalAlignment.Center; colTxDate.Image = null; colTxDate.Name = "colTxDate"; colTxDate.Text = Utility.Dictionary.GetWord("TxDate"); colTxDate.TextAlign = HorizontalAlignment.Left; colTxDate.Width = 80; // // colOperator // colOperator.ContentAlign = ExtendedHorizontalAlignment.Center; colOperator.Image = null; colOperator.Name = "colOperator"; colOperator.Text = WestwindHelper.GetWord("staff.number", "Model"); colOperator.TextAlign = HorizontalAlignment.Left; colOperator.Width = 70; // // colFromLocation // colFromLocation.ContentAlign = ExtendedHorizontalAlignment.Center; colFromLocation.Image = null; colFromLocation.Name = "colFromLocation"; colFromLocation.Text = Utility.Dictionary.GetWord("From_location"); colFromLocation.TextAlign = HorizontalAlignment.Center; colFromLocation.Width = 80; // // colToLocation // colToLocation.ContentAlign = ExtendedHorizontalAlignment.Center; colToLocation.Image = null; colToLocation.Name = "colToLocation"; colToLocation.Text = Utility.Dictionary.GetWord("To_location"); colToLocation.TextAlign = HorizontalAlignment.Center; colToLocation.Width = 80; // // colTransferredOn // colTransferredOn.ContentAlign = ExtendedHorizontalAlignment.Center; colTransferredOn.Image = null; colTransferredOn.Name = "colTransferredOn"; colTransferredOn.Text = Utility.Dictionary.GetWord("Transfer Date"); colTransferredOn.TextAlign = HorizontalAlignment.Left; colTransferredOn.Width = 80; // // colCompletedOn // colCompletedOn.ContentAlign = ExtendedHorizontalAlignment.Center; colCompletedOn.Image = null; colCompletedOn.Name = "colCompletedOn"; colCompletedOn.Text = Utility.Dictionary.GetWord("Completion Date"); colCompletedOn.TextAlign = HorizontalAlignment.Left; colCompletedOn.Width = 80; // // colRemarks // colRemarks.ContentAlign = ExtendedHorizontalAlignment.Center; colRemarks.Image = null; colRemarks.Name = "colRemarks"; colRemarks.Text = Utility.Dictionary.GetWord("Remarks"); colRemarks.TextAlign = HorizontalAlignment.Left; colRemarks.Width = 150; // // colCreatedOn // colCreatedOn.ContentAlign = ExtendedHorizontalAlignment.Center; colCreatedOn.Image = null; colCreatedOn.Name = "colCreatedOn"; colCreatedOn.Text = WestwindHelper.GetWord("glossary.createdOn", "General"); colCreatedOn.TextAlign = HorizontalAlignment.Left; colCreatedOn.Width = 110; // // colModifiedOn // colModifiedOn.ContentAlign = ExtendedHorizontalAlignment.Center; colModifiedOn.Image = null; colModifiedOn.Name = "colModifiedOn"; colModifiedOn.Text = WestwindHelper.GetWord("glossary.modifiedOn", "General"); colModifiedOn.TextAlign = HorizontalAlignment.Left; colModifiedOn.Width = 110; // // colTxType // colTxType.ContentAlign = ExtendedHorizontalAlignment.Center; colTxType.Image = null; colTxType.Name = "colTxType"; colTxType.Text = Utility.Dictionary.GetWord("TxType"); colTxType.TextAlign = HorizontalAlignment.Left; colTxType.Width = 50; lvList.Columns.AddRange(new Gizmox.WebGUI.Forms.ColumnHeader[] { colTxNumber, colLN, colInvtTxferId, colTxType, colTxDate, colOperator, colFromLocation, colToLocation, colTransferredOn, colCompletedOn, colRemarks, colCreatedOn, colModifiedOn }); }
/// <summary> /// Initializes a new instance of the ColumnEventArgs class. /// </summary> /// <param name="column"></param> public ColumnEventArgs(ColumnHeader column) { Column = column; }
private void InitializeComponent() { this.addButton = new System.Windows.Forms.Button(); this.deleteButton = new System.Windows.Forms.Button(); this.cancelButton = new System.Windows.Forms.Button(); this.filesList = new System.Windows.Forms.ListView(); this.columnHeaderName = new System.Windows.Forms.ColumnHeader(); this.columnHeaderSize = new System.Windows.Forms.ColumnHeader(); this.columnHeaderProgression = new System.Windows.Forms.ColumnHeader(); this.printButton = new System.Windows.Forms.Button(); this.networkOptionsLabel = new System.Windows.Forms.LinkLabel(); this.columnHeaderId = new System.Windows.Forms.ColumnHeader(); this.SuspendLayout(); // // addButton // this.addButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.addButton.Location = new System.Drawing.Point(441, 10); this.addButton.Margin = new System.Windows.Forms.Padding(2); this.addButton.Name = "addButton"; this.addButton.Size = new System.Drawing.Size(128, 28); this.addButton.TabIndex = 1; this.addButton.Text = "Ajouter"; this.addButton.UseVisualStyleBackColor = true; this.addButton.Click += new System.EventHandler(this.addButton_Click); // // deleteButton // this.deleteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.deleteButton.Enabled = false; this.deleteButton.Location = new System.Drawing.Point(441, 43); this.deleteButton.Margin = new System.Windows.Forms.Padding(2); this.deleteButton.Name = "deleteButton"; this.deleteButton.Size = new System.Drawing.Size(128, 28); this.deleteButton.TabIndex = 2; this.deleteButton.Text = "Supprimer"; this.deleteButton.UseVisualStyleBackColor = true; this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click); // // cancelButton // this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.cancelButton.Location = new System.Drawing.Point(441, 425); this.cancelButton.Margin = new System.Windows.Forms.Padding(2); this.cancelButton.Name = "cancelButton"; this.cancelButton.Size = new System.Drawing.Size(128, 28); this.cancelButton.TabIndex = 5; this.cancelButton.Text = "Annuler"; this.cancelButton.UseVisualStyleBackColor = true; this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click); // // filesList // this.filesList.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.filesList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeaderName, this.columnHeaderSize, this.columnHeaderProgression, this.columnHeaderId }); this.filesList.Location = new System.Drawing.Point(9, 10); this.filesList.Margin = new System.Windows.Forms.Padding(2); this.filesList.Name = "filesList"; this.filesList.Size = new System.Drawing.Size(419, 445); this.filesList.TabIndex = 4; this.filesList.UseCompatibleStateImageBehavior = false; this.filesList.View = System.Windows.Forms.View.Details; this.filesList.SelectedIndexChanged += new System.EventHandler(this.filesList_SelectedIndexChanged); // // columnHeaderName // this.columnHeaderName.Text = "Name"; this.columnHeaderName.Width = 182; // // columnHeaderSize // this.columnHeaderSize.Text = "Size (Ko)"; this.columnHeaderSize.Width = 83; // // columnHeaderProgression // this.columnHeaderProgression.Text = "Progression"; this.columnHeaderProgression.Width = 87; // // printButton // this.printButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.printButton.Enabled = false; this.printButton.Location = new System.Drawing.Point(441, 76); this.printButton.Margin = new System.Windows.Forms.Padding(2); this.printButton.Name = "printButton"; this.printButton.Size = new System.Drawing.Size(128, 28); this.printButton.TabIndex = 3; this.printButton.Text = "Imprimer"; this.printButton.UseVisualStyleBackColor = true; this.printButton.Click += new System.EventHandler(this.printButton_Click); // // networkOptionsLabel // this.networkOptionsLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.networkOptionsLabel.AutoSize = true; this.networkOptionsLabel.Location = new System.Drawing.Point(441, 110); this.networkOptionsLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.networkOptionsLabel.Name = "networkOptionsLabel"; this.networkOptionsLabel.Size = new System.Drawing.Size(126, 13); this.networkOptionsLabel.TabIndex = 4; this.networkOptionsLabel.TabStop = true; this.networkOptionsLabel.Text = "Manage network settings"; this.networkOptionsLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.networkOptionsLabel_LinkClicked); // // columnHeaderId // this.columnHeaderId.Text = "#"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(575, 471); this.Controls.Add(this.networkOptionsLabel); this.Controls.Add(this.printButton); this.Controls.Add(this.filesList); this.Controls.Add(this.cancelButton); this.Controls.Add(this.deleteButton); this.Controls.Add(this.addButton); this.Margin = new System.Windows.Forms.Padding(2); this.MinimumSize = new System.Drawing.Size(407, 449); this.Name = "Form1"; this.Text = "PrinterTycoon Client"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Makes a copy of ColumnHeader object. /// </summary> /// <returns>Returns new instance of column header object.</returns> public virtual ColumnHeader Copy() { ColumnHeader c = new ColumnHeader(); c.ColumnName = this.ColumnName; c.StyleMouseDown = this.StyleMouseDown; c.StyleMouseOver = this.StyleMouseOver; c.StyleNormal = this.StyleNormal; c.Text = this.Text; c.Visible = this.Visible; c.Width.Absolute = this.Width.Absolute; c.Width.Relative = this.Width.Relative; c.Width.AutoSize = this.Width.AutoSize; c.Width.AutoSizeMinHeader = this.Width.AutoSizeMinHeader; c.DisplayIndex = this.DisplayIndex; c.SortDirection = this.SortDirection; c.SortingEnabled = this.SortingEnabled; c.StretchToFill = this.StretchToFill; c.Tag = this.Tag; c.DataFieldName = this.DataFieldName; c.DoubleClickAutoSize = this.DoubleClickAutoSize; c.Editable = this.Editable; c.EditorType = this.EditorType; c.Image = this.Image; c.ImageAlignment = this.ImageAlignment; c.MaxInputLength = this.MaxInputLength; c.MinimumWidth = this.MinimumWidth; c.SortComparer = this.SortComparer; c.SortComparerReverse = this.SortComparerReverse; return c; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.groupBox1 = new MediaPortal.UserInterface.Controls.MPGroupBox(); this.mpButtonWOL = new MediaPortal.UserInterface.Controls.MPButton(); this.checkBoxSwitchRemovableDrive = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.checkBoxAddOpticalDiskDrives = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.checkBoxRemember = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.deleteButton = new MediaPortal.UserInterface.Controls.MPButton(); this.editButton = new MediaPortal.UserInterface.Controls.MPButton(); this.addButton = new MediaPortal.UserInterface.Controls.MPButton(); this.sharesListView = new MediaPortal.UserInterface.Controls.MPListView(); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((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.groupBox1.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.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.groupBox1.Controls.Add(this.mpButtonWOL); this.groupBox1.Controls.Add(this.checkBoxSwitchRemovableDrive); this.groupBox1.Controls.Add(this.checkBoxAddOpticalDiskDrives); this.groupBox1.Controls.Add(this.checkBoxRemember); this.groupBox1.Controls.Add(this.deleteButton); this.groupBox1.Controls.Add(this.editButton); this.groupBox1.Controls.Add(this.addButton); this.groupBox1.Controls.Add(this.sharesListView); this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.groupBox1.Location = new System.Drawing.Point(6, 0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(462, 408); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; // // mpButtonWOL // this.mpButtonWOL.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.mpButtonWOL.Location = new System.Drawing.Point(342, 359); this.mpButtonWOL.Name = "mpButtonWOL"; this.mpButtonWOL.Size = new System.Drawing.Size(104, 23); this.mpButtonWOL.TabIndex = 7; this.mpButtonWOL.Text = "WOL parameters"; this.mpButtonWOL.UseVisualStyleBackColor = true; this.mpButtonWOL.Click += new System.EventHandler(this.mpButtonWOL_Click); // // checkBoxSwitchRemovableDrive // this.checkBoxSwitchRemovableDrive.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkBoxSwitchRemovableDrive.AutoSize = true; this.checkBoxSwitchRemovableDrive.Checked = true; this.checkBoxSwitchRemovableDrive.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxSwitchRemovableDrive.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.checkBoxSwitchRemovableDrive.Location = new System.Drawing.Point(16, 380); this.checkBoxSwitchRemovableDrive.Name = "checkBoxSwitchRemovableDrive"; this.checkBoxSwitchRemovableDrive.Size = new System.Drawing.Size(254, 17); this.checkBoxSwitchRemovableDrive.TabIndex = 6; this.checkBoxSwitchRemovableDrive.Text = "Automatically switch to inserted removable drives"; this.checkBoxSwitchRemovableDrive.UseVisualStyleBackColor = true; // // checkBoxAddOpticalDiskDrives // this.checkBoxAddOpticalDiskDrives.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkBoxAddOpticalDiskDrives.AutoSize = true; this.checkBoxAddOpticalDiskDrives.Checked = true; this.checkBoxAddOpticalDiskDrives.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxAddOpticalDiskDrives.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.checkBoxAddOpticalDiskDrives.Location = new System.Drawing.Point(16, 357); this.checkBoxAddOpticalDiskDrives.Name = "checkBoxAddOpticalDiskDrives"; this.checkBoxAddOpticalDiskDrives.Size = new System.Drawing.Size(194, 17); this.checkBoxAddOpticalDiskDrives.TabIndex = 5; this.checkBoxAddOpticalDiskDrives.Text = "Automatically add optical disk drives"; this.checkBoxAddOpticalDiskDrives.UseVisualStyleBackColor = true; // // checkBoxRemember // this.checkBoxRemember.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkBoxRemember.AutoSize = true; this.checkBoxRemember.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.checkBoxRemember.Location = new System.Drawing.Point(16, 334); this.checkBoxRemember.Name = "checkBoxRemember"; this.checkBoxRemember.Size = new System.Drawing.Size(149, 17); this.checkBoxRemember.TabIndex = 1; this.checkBoxRemember.Text = "Remember last used folder"; this.checkBoxRemember.UseVisualStyleBackColor = true; // // deleteButton // this.deleteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.deleteButton.Enabled = false; this.deleteButton.Location = new System.Drawing.Point(374, 331); this.deleteButton.Name = "deleteButton"; this.deleteButton.Size = new System.Drawing.Size(72, 22); this.deleteButton.TabIndex = 4; this.deleteButton.Text = "Delete"; this.deleteButton.UseVisualStyleBackColor = true; this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click); // // editButton // this.editButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.editButton.Enabled = false; this.editButton.Location = new System.Drawing.Point(294, 331); this.editButton.Name = "editButton"; this.editButton.Size = new System.Drawing.Size(72, 22); this.editButton.TabIndex = 3; this.editButton.Text = "Edit"; this.editButton.UseVisualStyleBackColor = true; this.editButton.Click += new System.EventHandler(this.editButton_Click); // // addButton // this.addButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.addButton.Location = new System.Drawing.Point(214, 331); this.addButton.Name = "addButton"; this.addButton.Size = new System.Drawing.Size(72, 22); this.addButton.TabIndex = 2; this.addButton.Text = "Add"; this.addButton.UseVisualStyleBackColor = true; this.addButton.Click += new System.EventHandler(this.addButton_Click); // // sharesListView // this.sharesListView.AllowDrop = true; this.sharesListView.AllowRowReorder = true; this.sharesListView.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.sharesListView.CheckBoxes = true; this.sharesListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader3, this.columnHeader2, this.columnHeader4, this.columnHeader5 }); this.sharesListView.FullRowSelect = true; this.sharesListView.Location = new System.Drawing.Point(16, 24); this.sharesListView.Name = "sharesListView"; this.sharesListView.Size = new System.Drawing.Size(430, 301); this.sharesListView.TabIndex = 0; this.sharesListView.UseCompatibleStateImageBehavior = false; this.sharesListView.View = System.Windows.Forms.View.Details; this.sharesListView.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.sharesListView_ItemCheck); this.sharesListView.SelectedIndexChanged += new System.EventHandler(this.sharesListView_SelectedIndexChanged); // // columnHeader1 // this.columnHeader1.Text = "Name"; this.columnHeader1.Width = 106; // // columnHeader3 // this.columnHeader3.Text = "Pin"; this.columnHeader3.Width = 57; // // columnHeader2 // this.columnHeader2.Text = "Folder"; this.columnHeader2.Width = 210; // // columnHeader4 // this.columnHeader4.Text = "Thumbs"; // // columnHeader5 // this.columnHeader5.Text = "MAC Address"; this.columnHeader5.Width = 120; // // BaseShares // this.Controls.Add(this.groupBox1); this.Name = "BaseShares"; this.Size = new System.Drawing.Size(472, 408); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.ResumeLayout(false); }