private void chbDelete_OnChange(MCheckBox source, bool value) { if (mInstructBox.SelectedItems.Count <= 0) { BoxSetHelper(false); } else { mInstructBox.SelectedItems.ForEach(x => ((InstructionInfo)x).Delete = value); RefershInstructionList(); } }
public override EvasObject CreateContent(EvasObject parent) { var box = new ColoredBox(parent); box.Show(); box.PackEnd(GetTitleLabel(parent)); var check = new MCheckBox(parent) { IsChecked = true, WeightY = 1, WeightX = 1, AlignmentY = 0.5, AlignmentX = 0.5 }; box.PackEnd(check); check.Show(); var check2 = new MCheckBox(parent) { IsEnabled = true, Color = Color.FromHex("#E30425"), WeightY = 1, WeightX = 1, AlignmentY = 0.5, AlignmentX = 0.5 }; box.PackEnd(check2); check2.Show(); var check3 = new MCheckBox(parent) { IsChecked = true, IsEnabled = false, WeightY = 1, WeightX = 1, AlignmentY = 0.5, AlignmentX = 0.5 }; box.PackEnd(check3); check3.Show(); return(box); }
private void Initialize() { DataGridViewCellStyle dataGridViewCellStyle1 = new DataGridViewCellStyle(); DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle(); DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle(); lpanel = new XShadowPanel(); linner_panel = new Panel(); chk_notactive = new MCheckBox(); txt_ledger_name = new LookupBox(); lbl_ledger_name = new XLabel(); btn_close = new CloseButton(); lbl_header = new Header(); btn_print = new OfficeButton(); btn_delete = new OfficeButton(); btn_edit = new OfficeButton(); btn_new = new OfficeButton(); btn_refresh = new OfficeButton(); listgrid = new ListGridView(); btn_search = new OfficeButton(); lpanel.SuspendLayout(); linner_panel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(listgrid)).BeginInit(); SuspendLayout(); lpanel.Name = "lpanel"; lpanel.Dock = DockStyle.Fill; lpanel.Size = XSize.FPanel; lpanel.Location = XLayout.FPanel; lpanel.BackColor = XTheme.FPanel; lpanel.Controls.Add(linner_panel); lpanel.Controls.Add(btn_close); lpanel.Controls.Add(lbl_header); linner_panel.Anchor = XAnchor.LTRB; linner_panel.BackColor = XTheme.LInnerpanel; linner_panel.Controls.Add(btn_search); linner_panel.Controls.Add(chk_notactive); linner_panel.Controls.Add(txt_ledger_name); linner_panel.Controls.Add(lbl_ledger_name); linner_panel.Controls.Add(btn_print); linner_panel.Controls.Add(btn_delete); linner_panel.Controls.Add(btn_edit); linner_panel.Controls.Add(btn_new); linner_panel.Controls.Add(btn_refresh); linner_panel.Controls.Add(listgrid); linner_panel.Location = XLayout.LInnerPanel; linner_panel.Name = "linner_panel"; linner_panel.Size = XSize.LInnerPanel; btn_close.Click += Btn_close_Click; lbl_header.Text = "Ledger"; chk_notactive.Anchor = XAnchor.TR; chk_notactive.AutoSize = true; chk_notactive.Font = XFont.TxtFont; chk_notactive.Location = XLayout.ListFirstBtn; chk_notactive.MouseLocation = new Point(-1, -1); chk_notactive.Name = "chk_notactive"; chk_notactive.Size = new Size(92, 30); chk_notactive.TabIndex = 4; chk_notactive.Text = "Not Active"; chk_notactive.CheckedChanged += new System.EventHandler(Chk_notactive_CheckedChanged); txt_ledger_name.Font = XFont.TxtFont; txt_ledger_name.ForeColor = XFontColor.TxtFontColor; txt_ledger_name.BackColor = XTheme.TxtBackcolor; txt_ledger_name.Name = "txt_ledger_name"; txt_ledger_name.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_ledger_name.Size = XSize.TwoText; txt_ledger_name.Anchor = XAnchor.LTR; txt_ledger_name.Location = XLayout.FirstText; txt_ledger_name.TabIndex = 5; lbl_ledger_name.Font = XFont.Font_10B; lbl_ledger_name.Name = "lbl_ledger_name"; lbl_ledger_name.Text = "Ledger"; lbl_ledger_name.TextAlign = ContentAlignment.MiddleCenter; lbl_ledger_name.ForeColor = XFontColor.Lbl_ForeColor; lbl_ledger_name.Size = XSize.OneLabel; lbl_ledger_name.Location = XLayout.FirstLabel; btn_search.Font = XFont.BtnFont; btn_search.Location = new Point(txt_ledger_name.Right + 10, txt_ledger_name.Top); btn_search.Size = new Size(75, 26); btn_search.TabIndex = 1; btn_search.Name = "btn_search"; btn_search.Text = "&Search"; btn_search.Themes = XTheme.YellowBtn; btn_search.Anchor = XAnchor.TR; btn_search.Click += Btn_search_Click; #region [btn Properties] btn_refresh.Font = XFont.BtnFont; btn_refresh.Location = XLayout.BtnLocation(chk_notactive.Location); btn_refresh.Size = XSize.BtnOne; btn_refresh.TabIndex = 1; btn_refresh.Name = "btn_refresh"; btn_refresh.Text = "&Refresh"; btn_refresh.Themes = XTheme.BlueBtn; btn_refresh.Anchor = XAnchor.TR; btn_refresh.Click += Btn_refresh_Click; btn_new.Font = XFont.BtnFont; btn_new.Location = XLayout.BtnLocation(btn_refresh.Location); btn_new.Size = XSize.BtnOne; btn_new.TabIndex = XTab.Index(btn_refresh.TabIndex); btn_new.Name = "btn_new"; btn_new.Text = "&New"; btn_new.Themes = XTheme.BlueBtn; btn_new.Anchor = XAnchor.TR; btn_new.Click += Btn_new_Click; btn_edit.Font = XFont.BtnFont; btn_edit.Location = XLayout.BtnLocation(btn_new.Location); btn_edit.Size = XSize.BtnOne; btn_edit.TabIndex = XTab.Index(btn_new.TabIndex); btn_edit.Name = "btn_edit"; btn_edit.Text = "&Edit"; btn_edit.Themes = XTheme.BlueBtn; btn_edit.Anchor = XAnchor.TR; btn_edit.Click += Btn_edit_Click; btn_delete.Font = XFont.BtnFont; btn_delete.Location = XLayout.BtnLocation(btn_edit.Location); btn_delete.Size = XSize.BtnOne; btn_delete.TabIndex = XTab.Index(btn_edit.TabIndex); btn_delete.Name = "btn_delete"; btn_delete.Text = "&Delete"; btn_delete.Themes = XTheme.BlueBtn; btn_delete.Anchor = XAnchor.TR; btn_delete.Click += Btn_delete_Click; btn_print.Font = XFont.BtnFont; btn_print.Location = XLayout.BtnLocation(btn_delete.Location); btn_print.Size = XSize.BtnOne; btn_print.TabIndex = XTab.Index(btn_delete.TabIndex); btn_print.Name = "btn_print"; btn_print.Text = "&Print"; btn_print.Themes = XTheme.BlueBtn; btn_print.Anchor = XAnchor.TR; btn_print.Click += Btn_print_Click; #endregion [btn Properties] #region [List Grid] listgrid.AllowUserToAddRows = false; listgrid.AllowUserToDeleteRows = false; listgrid.AllowUserToOrderColumns = true; listgrid.AllowUserToResizeRows = false; dataGridViewCellStyle1.BackColor = Color.White; dataGridViewCellStyle1.Font = XFont.Font_10R; dataGridViewCellStyle1.ForeColor = Color.Black; dataGridViewCellStyle1.SelectionBackColor = Color.FromArgb(255, 255, 204); dataGridViewCellStyle1.SelectionForeColor = Color.FromArgb(252, 0, 11); dataGridViewCellStyle1.WrapMode = DataGridViewTriState.True; listgrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; listgrid.Anchor = XAnchor.LTRB; listgrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; listgrid.BackgroundColor = Color.White; listgrid.BorderStyle = BorderStyle.Fixed3D; listgrid.CellBorderStyle = DataGridViewCellBorderStyle.Custom; listgrid.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Custom; dataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle2.BackColor = Color.FromArgb(132, 192, 96); dataGridViewCellStyle2.Font = new Font("Microsoft Sans Serif", 11.25F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle2.ForeColor = Color.White; dataGridViewCellStyle2.Padding = new Padding(3); dataGridViewCellStyle2.SelectionBackColor = SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = DataGridViewTriState.True; listgrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; listgrid.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; listgrid.Cursor = Cursors.Default; dataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle3.BackColor = Color.White; dataGridViewCellStyle3.Font = XFont.Font_10R; dataGridViewCellStyle3.ForeColor = Color.Black; dataGridViewCellStyle3.SelectionBackColor = Color.FromArgb(255, 255, 204); dataGridViewCellStyle3.SelectionForeColor = Color.FromArgb(252, 0, 11); dataGridViewCellStyle3.WrapMode = DataGridViewTriState.False; listgrid.DefaultCellStyle = dataGridViewCellStyle3; listgrid.EnableHeadersVisualStyles = false; listgrid.GridColor = Color.SeaGreen; listgrid.MultiSelect = false; listgrid.Name = "listgrid"; listgrid.ReadOnly = true; listgrid.RowHeadersVisible = false; listgrid.SelectionMode = DataGridViewSelectionMode.FullRowSelect; listgrid.Location = XLayout.ListView; listgrid.Size = XSize.ListView; listgrid.StandardTab = true; listgrid.TabIndex = 0; #endregion [List Grid] AutoScaleDimensions = new SizeF(6F, 13F); AutoScaleMode = AutoScaleMode.Font; Controls.Add(lpanel); Name = "LLedger"; Size = new Size(1000, 600); lpanel.ResumeLayout(false); linner_panel.ResumeLayout(false); linner_panel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(listgrid)).EndInit(); ResumeLayout(false); }
public override void Run(Window window) { MConformant conformant = new MConformant(window); conformant.Show(); Box box = new ColoredBox(window); conformant.SetContent(box); box.Show(); #region ThemeButton Box hbox = new Box(window) { IsHorizontal = true, WeightX = 1, WeightY = 0.1, AlignmentX = -1, AlignmentY = -1, }; hbox.Show(); box.PackEnd(hbox); var defaultColor = new MButton(window) { Text = "default", MinimumWidth = 200, WeightY = 1, AlignmentY = 0.5 }; var light = new MButton(window) { Text = "light", MinimumWidth = 200, WeightY = 1, AlignmentY = 0.5 }; var dark = new MButton(window) { Text = "Dark", MinimumWidth = 200, WeightY = 1, AlignmentY = 0.5 }; defaultColor.Show(); light.Show(); dark.Show(); hbox.PackEnd(defaultColor); hbox.PackEnd(light); hbox.PackEnd(dark); defaultColor.Clicked += (s, e) => MColors.Current = MColors.Default; light.Clicked += (s, e) => MColors.Current = MColors.Light; dark.Clicked += (s, e) => MColors.Current = MColors.Dark; #endregion #region ModalSheets MModalSheets modalSheets = new MModalSheets(conformant, MModalSheetsDirection.Side); modalSheets.Show(); Label label1 = new Label(window) { Text = "<span font_size=35 color=#a8a8a8>Labels</span>", AlignmentX = 0, }; label1.Show(); var check1 = new MCheckBox(window) { Text = "Events", MinimumWidth = 400, }; check1.Show(); var check2 = new MCheckBox(window) { Text = "Personal", IsChecked = true, MinimumWidth = 400, }; check2.Show(); var check3 = new MCheckBox(window) { Text = "Project", IsChecked = true, MinimumWidth = 400, }; check3.Show(); var check4 = new MCheckBox(window) { Text = "Reminders", MinimumWidth = 400, }; check4.Show(); var check5 = new MCheckBox(window) { Text = "Work", MinimumWidth = 400, }; check5.Show(); var contents = new Box(conformant) { IsHorizontal = true, AlignmentX = -1, AlignmentY = -1, WeightX = 1, WeightY = 1, BackgroundColor = Color.White, }; contents.Show(); contents.SetPadding(45, 45); var contents1 = new Box(conformant) { IsHorizontal = true, }; contents1.Show(); contents1.SetPadding(45, 45); contents.PackEnd(contents1); var contents2 = new Box(conformant) { IsHorizontal = false, AlignmentX = 0, AlignmentY = 0, WeightX = 1, WeightY = 0, }; contents2.Show(); contents2.SetPadding(45, 45); contents.PackEnd(contents2); var contents3 = new Box(conformant) { IsHorizontal = false, }; contents3.Show(); contents3.SetPadding(45, 45); contents2.PackEnd(contents3); contents2.PackEnd(label1); contents2.PackEnd(check1); contents2.PackEnd(check2); contents2.PackEnd(check3); contents2.PackEnd(check4); contents2.PackEnd(check5); modalSheets.SetContent(contents); #endregion #region Buttons Box btbox = new Box(window) { WeightX = 1, WeightY = 0.3, AlignmentX = -1, AlignmentY = -1, }; btbox.Show(); box.PackEnd(btbox); MButton button1 = new MButton(window) { Text = "Open MModalSideSheets", MinimumWidth = 600, AlignmentY = 0, WeightY = 0.3, }; button1.Show(); button1.Clicked += (s, e) => { modalSheets.IsOpen = true; }; btbox.PackEnd(button1); #endregion }
private void Initialize() { #region [declare new] components = new Container(); splitTimer = new Timer(components); split_container = new SplitContainer(); fpanel = new XShadowPanel(); finner_panel = new Panel(); btn_list = new OfficeButton(); btn_new = new OfficeButton(); btn_edit = new OfficeButton(); btn_delete = new OfficeButton(); btn_print = new OfficeButton(); btn_splitter = new OfficeButton(); lbl_header = new Header(); btn_close = new CloseButton(); lbl_order_id = new XLabel(); txt_order_id = new LookupBox(); lbl_taxtype_id = new XLabel(); txt_taxtype_id = new LookupBox(); lbl_salestype_id = new XLabel(); txt_salestype_id = new LookupBox(); txt_entry_no = new XTextBox(); lbl_entry_no = new XLabel(); txt_purchase_no = new XTextBox(); lbl_purchase_no = new XLabel(); txt_purchase_date = new xDatepicker(); lbl_purchase_date = new XLabel(); txt_party_id = new LookupBox(); lbl_party_id = new XLabel(); editgrid = new EditGridView(); txt_total_qty = new XLabel(); lbl_total_qty = new XLabel(); txt_gsttotal = new XLabel(); lbl_gsttotal = new XLabel(); txt_ledger_id = new LookupBox(); lbl_ledger_id = new XLabel(); txt_additional = new XTextBox(); lbl_additional = new XLabel(); txt_grandtotal = new XLabel(); lbl_grandtotal = new XLabel(); txt_notes = new RichTextBox(); lbl_notes = new XLabel(); btn_save = new OfficeButton(); btn_saveprint = new OfficeButton(); btn_active = new OfficeButton(); print_panel = new ShadowBox(); btn_print_close = new CloseButton(); lbl_print_header = new Label(); check_original = new MCheckBox(); check_duplicate = new MCheckBox(); check_triplicate = new MCheckBox(); check_fourplicate = new MCheckBox(); #endregion [declare new] #region [container suspend] ((ISupportInitialize)(split_container)).BeginInit(); ((ISupportInitialize)(editgrid)).BeginInit(); split_container.Panel1.SuspendLayout(); split_container.Panel2.SuspendLayout(); split_container.SuspendLayout(); fpanel.SuspendLayout(); finner_panel.SuspendLayout(); SuspendLayout(); #endregion [container suspend] #region [splitTimer] splitTimer.Interval = 2; splitTimer.Tick += new EventHandler(SplitTimer_Tick); #endregion [splitTimer] #region [split_container] split_container.Dock = DockStyle.Fill; split_container.Location = new Point(0, 0); split_container.Name = "split_container"; split_container.BackColor = XTheme.Splitcontainer_colour; split_container.Size = XSize.FSplitcontainer; split_container.SplitterDistance = XSize.Screen_Width; split_container.TabIndex = XTab.Splitcontainer; // split_container.Panel1 split_container.Panel1.Controls.Add(fpanel); #region [split_container.Panel2] split_container.Panel2.Controls.Add(btn_print); split_container.Panel2.Controls.Add(btn_delete); split_container.Panel2.Controls.Add(btn_edit); split_container.Panel2.Controls.Add(btn_new); split_container.Panel2.Controls.Add(btn_list); split_container.Panel2.Controls.Add(btn_splitter); btn_list.Font = XFont.BtnFont; btn_list.Location = XLayout.FormFirstBtn; btn_list.Size = XSize.BtnOne; btn_list.TabIndex = 1; btn_list.Name = "btn_list"; btn_list.Text = "&List"; btn_list.Themes = XTheme.BlueBtn; btn_list.Click += Btn_list_Click; btn_new.Font = XFont.BtnFont; btn_new.Location = XLayout.BtnLocation(btn_list.Location); btn_new.Size = XSize.BtnOne; btn_new.TabIndex = XTab.Index(btn_list.TabIndex); btn_new.Name = "btn_new"; btn_new.Text = "&New"; btn_new.Themes = XTheme.BlueBtn; btn_new.Click += Btn_new_Click; btn_edit.Font = XFont.BtnFont; btn_edit.Location = XLayout.BtnLocation(btn_new.Location); btn_edit.Size = XSize.BtnOne; btn_edit.TabIndex = XTab.Index(btn_new.TabIndex); btn_edit.Name = "btn_edit"; btn_edit.Text = "&Edit"; btn_edit.Themes = XTheme.BlueBtn; btn_edit.Click += Btn_edit_Click; btn_delete.Font = XFont.BtnFont; btn_delete.Location = XLayout.BtnLocation(btn_edit.Location); btn_delete.Size = XSize.BtnOne; btn_delete.TabIndex = XTab.Index(btn_edit.TabIndex); btn_delete.Name = "btn_delete"; btn_delete.Text = "&Delete"; btn_delete.Themes = XTheme.BlueBtn; btn_delete.Click += Btn_delete_Click; btn_print.Font = XFont.BtnFont; btn_print.Location = XLayout.BtnLocation(btn_delete.Location); btn_print.Size = XSize.BtnOne; btn_print.TabIndex = XTab.Index(btn_delete.TabIndex); btn_print.Name = "btn_print"; btn_print.Text = "&Print"; btn_print.Themes = XTheme.BlueBtn; btn_print.Click += Btn_print_Click; btn_splitter.Font = XFont.BtnFont; btn_splitter.Location = XLayout.Splitter; btn_splitter.Size = XSize.Splitter; btn_splitter.TabIndex = XTab.Index(btn_print.TabIndex); btn_splitter.Name = "btn_splitter"; btn_splitter.Text = "⁞⁞"; btn_splitter.Themes = XTheme.WhiteBtn; btn_splitter.Click += new EventHandler(Btn_splitter_Click); #endregion [split_container.Panel2] #endregion [split_container] #region [fpanel] fpanel.Name = "fpanel"; fpanel.Anchor = XAnchor.LTR; fpanel.Size = XSize.FPanel; fpanel.Location = XLayout.FPanel; fpanel.BackColor = XTheme.FPanel; fpanel.Controls.Add(finner_panel); fpanel.Controls.Add(btn_close); fpanel.Controls.Add(lbl_header); #endregion [fpanel] #region [finner_panel] finner_panel.Anchor = XAnchor.LTR; finner_panel.Cursor = Cursors.Default; finner_panel.Name = "finner_panel"; finner_panel.Size = XSize.FInnerPanel; finner_panel.Location = XLayout.FInnerPanel; finner_panel.BackColor = XTheme.FInnerpanel; finner_panel.AutoScroll = true; #region [adding controls] finner_panel.Controls.Add(lbl_order_id); finner_panel.Controls.Add(txt_order_id); finner_panel.Controls.Add(lbl_taxtype_id); finner_panel.Controls.Add(txt_taxtype_id); finner_panel.Controls.Add(lbl_salestype_id); finner_panel.Controls.Add(txt_salestype_id); finner_panel.Controls.Add(print_panel); finner_panel.Controls.Add(txt_notes); finner_panel.Controls.Add(lbl_notes); finner_panel.Controls.Add(txt_entry_no); finner_panel.Controls.Add(lbl_entry_no); finner_panel.Controls.Add(txt_purchase_no); finner_panel.Controls.Add(lbl_purchase_no); finner_panel.Controls.Add(txt_purchase_date); finner_panel.Controls.Add(lbl_purchase_date); finner_panel.Controls.Add(txt_party_id); finner_panel.Controls.Add(lbl_party_id); finner_panel.Controls.Add(txt_total_qty); finner_panel.Controls.Add(lbl_total_qty); finner_panel.Controls.Add(txt_gsttotal); finner_panel.Controls.Add(lbl_gsttotal); finner_panel.Controls.Add(txt_ledger_id); finner_panel.Controls.Add(lbl_ledger_id); finner_panel.Controls.Add(txt_additional); finner_panel.Controls.Add(lbl_additional); finner_panel.Controls.Add(txt_grandtotal); finner_panel.Controls.Add(lbl_grandtotal); finner_panel.Controls.Add(editgrid); finner_panel.Controls.Add(btn_save); finner_panel.Controls.Add(btn_saveprint); finner_panel.Controls.Add(btn_active); #endregion [adding controls] #region [Header] btn_close.Click += new EventHandler(Btn_close_Click); lbl_header.Text = "Purchase"; #endregion [Header] #region [Properties of control] lbl_order_id.Font = XFont.Font_10B; lbl_order_id.Name = "lbl_order_id"; lbl_order_id.Text = " Order Ref"; lbl_order_id.Anchor = XAnchor.LT; lbl_order_id.TextAlign = ContentAlignment.MiddleLeft; lbl_order_id.ForeColor = XFontColor.Lbl_ForeColor; lbl_order_id.Size = XSize.OneLabel; lbl_order_id.Location = XLayout.FirstLabel; txt_order_id.Font = XFont.TxtFont; txt_order_id.ForeColor = XFontColor.TxtFontColor; txt_order_id.BackColor = XTheme.TxtBackcolor; txt_order_id.Name = "txt_order_id"; txt_order_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_order_id.TextAlign = HorizontalAlignment.Left; txt_order_id.Size = XSize.TwoText; txt_order_id.Anchor = XAnchor.LT; txt_order_id.Location = XLayout.FirstText; txt_order_id.TabIndex = XTab.Txt_TabIndex; txt_order_id.Enter += new EventHandler(Txt_order_id_Enter); lbl_entry_no.Font = XFont.Font_10B; lbl_entry_no.Name = "lbl_entry_no"; lbl_entry_no.Text = " Entry no"; lbl_entry_no.Anchor = XAnchor.LT; lbl_entry_no.TextAlign = ContentAlignment.MiddleLeft; lbl_entry_no.ForeColor = XFontColor.Lbl_ForeColor; lbl_entry_no.Size = XSize.ThreeLabel; lbl_entry_no.Location = XLayout.R1_3Label_3(lbl_order_id.Location); txt_entry_no.Font = XFont.TxtFont; txt_entry_no.ForeColor = XFontColor.TxtFontColor; txt_entry_no.BackColor = XTheme.TxtBackcolor; txt_entry_no.Name = "txt_entry_no"; txt_entry_no.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_entry_no.TextAlign = HorizontalAlignment.Left; txt_entry_no.Size = XSize.ThreeText; txt_entry_no.Anchor = XAnchor.LT; txt_entry_no.Location = XLayout.R1_3Text_3(txt_order_id.Location); txt_entry_no.TabIndex = XTab.Index(btn_saveprint.TabIndex); txt_entry_no.Enter += new EventHandler(Txt_entry_no_Enter); lbl_taxtype_id.Font = XFont.Font_10B; lbl_taxtype_id.Name = "lbl_taxtype_id"; lbl_taxtype_id.Text = " TAX Type"; lbl_taxtype_id.Anchor = XAnchor.LT; lbl_taxtype_id.TextAlign = ContentAlignment.MiddleLeft; lbl_taxtype_id.ForeColor = XFontColor.Lbl_ForeColor; lbl_taxtype_id.Size = XSize.ThreeLabel; lbl_taxtype_id.Location = XLayout.R2_3Label_3(lbl_entry_no.Location); txt_taxtype_id.Font = XFont.TxtFont; txt_taxtype_id.ForeColor = XFontColor.TxtFontColor; txt_taxtype_id.BackColor = XTheme.TxtBackcolor; txt_taxtype_id.Name = "txt_taxtype_id"; txt_taxtype_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_taxtype_id.TextAlign = HorizontalAlignment.Left; txt_taxtype_id.Size = XSize.ThreeText; txt_taxtype_id.Anchor = XAnchor.LT; txt_taxtype_id.Location = XLayout.R2_3Text_3(txt_entry_no.Location); txt_taxtype_id.TabIndex = XTab.Index(txt_entry_no.TabIndex); txt_taxtype_id.Enter += new EventHandler(Txt_taxtype_id_Enter); txt_taxtype_id.TextChanged += Txt_taxtype_id_TextChanged; lbl_salestype_id.Font = XFont.Font_10B; lbl_salestype_id.Name = "lbl_salestype_id"; lbl_salestype_id.Text = "SalesType"; lbl_salestype_id.Anchor = XAnchor.LT; lbl_salestype_id.TextAlign = ContentAlignment.MiddleLeft; lbl_salestype_id.ForeColor = XFontColor.Lbl_ForeColor; lbl_salestype_id.Size = XSize.ThreeLabel; lbl_salestype_id.Location = XLayout.R2_3Label_3(lbl_taxtype_id.Location); txt_salestype_id.Font = XFont.TxtFont; txt_salestype_id.ForeColor = XFontColor.TxtFontColor; txt_salestype_id.BackColor = XTheme.TxtBackcolor; txt_salestype_id.Name = "txt_salestype_id"; txt_salestype_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_salestype_id.TextAlign = HorizontalAlignment.Left; txt_salestype_id.Size = XSize.ThreeText; txt_salestype_id.Anchor = XAnchor.LT; txt_salestype_id.Location = XLayout.R2_3Text_3(txt_taxtype_id.Location); txt_salestype_id.TabIndex = XTab.Index(txt_taxtype_id.TabIndex); txt_salestype_id.Enter += new EventHandler(Txt_salestype_id_Enter); lbl_purchase_no.Font = XFont.Font_10B; lbl_purchase_no.Name = "lbl_purchase_no"; lbl_purchase_no.Text = " Purchase no"; lbl_purchase_no.Anchor = XAnchor.LT; lbl_purchase_no.TextAlign = ContentAlignment.MiddleLeft; lbl_purchase_no.ForeColor = XFontColor.Lbl_ForeColor; lbl_purchase_no.Size = XSize.OneLabel; lbl_purchase_no.Location = XLayout.R2_2Label_1(lbl_order_id.Location); txt_purchase_no.Font = XFont.TxtFont; txt_purchase_no.ForeColor = XFontColor.TxtFontColor; txt_purchase_no.BackColor = XTheme.TxtBackcolor; txt_purchase_no.Name = "txt_purchase_no"; txt_purchase_no.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_purchase_no.TextAlign = HorizontalAlignment.Left; txt_purchase_no.Size = XSize.TwoText; txt_purchase_no.Anchor = XAnchor.LT; txt_purchase_no.Location = XLayout.R2_2Text_1(txt_order_id.Location); txt_purchase_no.TabIndex = XTab.Index(txt_order_id.TabIndex); txt_purchase_no.Enter += new EventHandler(Txt_purchase_no_Enter); lbl_purchase_date.Font = XFont.Font_10B; lbl_purchase_date.Name = "lbl_purchase_date"; lbl_purchase_date.Text = " Purchase date"; lbl_purchase_date.Anchor = XAnchor.LT; lbl_purchase_date.TextAlign = ContentAlignment.MiddleLeft; lbl_purchase_date.ForeColor = XFontColor.Lbl_ForeColor; lbl_purchase_date.Size = XSize.OneLabel; lbl_purchase_date.Location = XLayout.R2_2Label_1(lbl_purchase_no.Location); txt_purchase_date.Font = XFont.TxtFont; txt_purchase_date.ForeColor = XFontColor.TxtFontColor; txt_purchase_date.BackColor = XTheme.TxtBackcolor; txt_purchase_date.Name = "txt_purchase_date"; txt_purchase_date.CustomFormat = " dd-MM-yyyy"; txt_purchase_date.Format = DateTimePickerFormat.Custom; txt_purchase_date.Size = XSize.TwoText; txt_purchase_date.Anchor = XAnchor.LTR; txt_purchase_date.Location = XLayout.R2_2Text_1(txt_purchase_no.Location); txt_purchase_date.TabIndex = XTab.Index(txt_purchase_no.TabIndex); txt_purchase_date.Enter += new EventHandler(Txt_purchase_date_Enter); lbl_party_id.Font = XFont.Font_10B; lbl_party_id.Name = "lbl_party_id"; lbl_party_id.Text = " Party"; lbl_party_id.Anchor = XAnchor.LT; lbl_party_id.TextAlign = ContentAlignment.MiddleLeft; lbl_party_id.ForeColor = XFontColor.Lbl_ForeColor; lbl_party_id.Size = XSize.OneLabel; lbl_party_id.Location = XLayout.R1_Label(lbl_purchase_date.Location); txt_party_id.Font = XFont.TxtFont; txt_party_id.ForeColor = XFontColor.TxtFontColor; txt_party_id.BackColor = XTheme.TxtBackcolor; txt_party_id.Name = "txt_party_id"; txt_party_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_party_id.TextAlign = HorizontalAlignment.Left; txt_party_id.Size = XSize.OneText; txt_party_id.Anchor = XAnchor.LTR; txt_party_id.Location = XLayout.R1_Text(txt_purchase_date.Location); txt_party_id.TabIndex = XTab.Index(txt_purchase_date.TabIndex); txt_party_id.Enter += new EventHandler(Txt_party_id_Enter); editgrid.Location = new Point(XLayout.H_left, lbl_party_id.Bottom + 10); editgrid.Name = "editgrid"; editgrid.Size = new Size(finner_panel.Width - 50, 200); editgrid.TabIndex = XTab.Index(txt_party_id.TabIndex); editgrid.RowsLimit = 12; Point p = new Point(editgrid.Left, editgrid.Bottom); lbl_total_qty.Font = XFont.Font_10B; lbl_total_qty.Name = "lbl_total_qty"; lbl_total_qty.Text = "Total qty"; lbl_total_qty.Anchor = XAnchor.LT; lbl_total_qty.TextAlign = ContentAlignment.MiddleLeft; lbl_total_qty.ForeColor = XFontColor.Lbl_ForeColor; lbl_total_qty.Size = XSize.FourLabel; lbl_total_qty.Location = XLayout.R2_4Label_3(p); txt_total_qty.Font = XFont.TxtFont; txt_total_qty.ForeColor = XFontColor.TxtFontColor; txt_total_qty.BackColor = XTheme.TxtBackcolor; txt_total_qty.Name = "txt_total_qty"; txt_total_qty.TextAlign = ContentAlignment.MiddleRight; txt_total_qty.Size = XSize.FourText; txt_total_qty.Anchor = XAnchor.LT; txt_total_qty.Location = XLayout.R2_4Text_3(p); txt_total_qty.TabIndex = XTab.Index(editgrid.TabIndex); txt_total_qty.Enter += new EventHandler(Txt_total_qty_Enter); lbl_gsttotal.Font = XFont.Font_10B; lbl_gsttotal.Name = "lbl_gsttotal"; lbl_gsttotal.Text = "Gst total"; lbl_gsttotal.Anchor = XAnchor.LT; lbl_gsttotal.TextAlign = ContentAlignment.MiddleLeft; lbl_gsttotal.ForeColor = XFontColor.Lbl_ForeColor; lbl_gsttotal.Size = XSize.FourLabel; lbl_gsttotal.Location = XLayout.R2_4Label_4(p); txt_gsttotal.Font = XFont.TxtFont; txt_gsttotal.ForeColor = XFontColor.TxtFontColor; txt_gsttotal.BackColor = XTheme.TxtBackcolor; txt_gsttotal.Name = "txt_gsttotal"; txt_gsttotal.TextAlign = ContentAlignment.MiddleRight; txt_gsttotal.Size = XSize.FourText; txt_gsttotal.Anchor = XAnchor.LTR; txt_gsttotal.Location = XLayout.R2_4Text_4(p); txt_gsttotal.TabIndex = XTab.Index(txt_total_qty.TabIndex); txt_gsttotal.Enter += new EventHandler(Txt_gsttotal_Enter); lbl_ledger_id.Font = XFont.Font_10B; lbl_ledger_id.Name = "lbl_ledger_id"; lbl_ledger_id.Text = "Ledger"; lbl_ledger_id.Anchor = XAnchor.LT; lbl_ledger_id.TextAlign = ContentAlignment.MiddleLeft; lbl_ledger_id.ForeColor = XFontColor.Lbl_ForeColor; lbl_ledger_id.Size = XSize.FourLabel; lbl_ledger_id.Location = XLayout.R2_4Label_3(lbl_gsttotal.Location); txt_ledger_id.Font = XFont.TxtFont; txt_ledger_id.ForeColor = XFontColor.TxtFontColor; txt_ledger_id.BackColor = XTheme.TxtBackcolor; txt_ledger_id.Name = "txt_ledger_id"; txt_ledger_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_ledger_id.TextAlign = HorizontalAlignment.Left; txt_ledger_id.Size = XSize.FourText; txt_ledger_id.Anchor = XAnchor.LT; txt_ledger_id.Location = XLayout.R2_4Text_3(txt_gsttotal.Location); txt_ledger_id.TabIndex = XTab.Index(txt_gsttotal.TabIndex); txt_ledger_id.Enter += new EventHandler(Txt_ledger_id_Enter); lbl_additional.Font = XFont.Font_10B; lbl_additional.Name = "lbl_additional"; lbl_additional.Text = "Additional"; lbl_additional.Anchor = XAnchor.LT; lbl_additional.TextAlign = ContentAlignment.MiddleLeft; lbl_additional.ForeColor = XFontColor.Lbl_ForeColor; lbl_additional.Size = XSize.FourLabel; lbl_additional.Location = XLayout.R2_4Label_4(lbl_gsttotal.Location); txt_additional.Font = XFont.TxtFont; txt_additional.ForeColor = XFontColor.TxtFontColor; txt_additional.BackColor = XTheme.TxtBackcolor; txt_additional.Name = "txt_additional"; txt_additional.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_additional.TextAlign = HorizontalAlignment.Right; txt_additional.Size = XSize.FourText; txt_additional.Anchor = XAnchor.LTR; txt_additional.Location = XLayout.R2_4Text_4(txt_gsttotal.Location); txt_additional.TabIndex = XTab.Index(txt_ledger_id.TabIndex); txt_additional.Enter += new EventHandler(Txt_additional_Enter); txt_additional.TextChanged += Txt_additional_TextChanged; lbl_grandtotal.Font = XFont.Font_10B; lbl_grandtotal.Name = "lbl_grandtotal"; lbl_grandtotal.Text = "Grand total"; lbl_grandtotal.Anchor = XAnchor.LT; lbl_grandtotal.TextAlign = ContentAlignment.MiddleLeft; lbl_grandtotal.ForeColor = XFontColor.Lbl_ForeColor; lbl_grandtotal.Size = XSize.FourLabel; lbl_grandtotal.Location = XLayout.R2_4Label_4(lbl_additional.Location); txt_grandtotal.Font = XFont.TxtFont; txt_grandtotal.ForeColor = XFontColor.TxtFontColor; txt_grandtotal.BackColor = XTheme.TxtBackcolor; txt_grandtotal.Name = "txt_grandtotal"; txt_grandtotal.TextAlign = ContentAlignment.MiddleRight; txt_grandtotal.Size = XSize.FourText; txt_grandtotal.Anchor = XAnchor.LTR; txt_grandtotal.Location = XLayout.R2_4Text_4(txt_additional.Location); txt_grandtotal.TabIndex = XTab.Index(txt_additional.TabIndex); txt_grandtotal.Enter += new EventHandler(Txt_grandtotal_Enter); lbl_notes.Font = XFont.Font_10B; lbl_notes.ForeColor = XFontColor.Lbl_ForeColor; lbl_notes.Location = XLayout.LblNotes; lbl_notes.Size = XSize.LblNotes; lbl_notes.Anchor = XAnchor.LB; lbl_notes.Name = "lbl_notes"; lbl_notes.Text = " Notes"; lbl_notes.TextAlign = ContentAlignment.MiddleLeft; lbl_notes.Click += new EventHandler(Lbl_notes_Click); txt_notes.Font = Theme.txtFont; txt_notes.ForeColor = Theme.txtForeColor; txt_notes.BackColor = Theme.White; txt_notes.Location = XLayout.TxtNotes; txt_notes.Size = XSize.TxtNotes; txt_notes.Name = "txt_notes"; txt_notes.Anchor = XAnchor.LRB; txt_notes.TabIndex = XTab.Index(txt_notes.TabIndex); txt_notes.Enter += new EventHandler(Txt_notes_Enter); #endregion [Properties of control] #region [Properties of btn] btn_save.Anchor = XAnchor.RB; btn_save.Font = XFont.BtnFont; btn_save.Size = XSize.BtnOne; btn_save.Location = XLayout.BtnSave; btn_save.TabIndex = XTab.Index(txt_grandtotal.TabIndex); btn_save.Name = "btn_save"; btn_save.Text = "&SAVE"; btn_save.Themes = XTheme.BlueBtn; btn_save.Click += new EventHandler(Btn_save_click); btn_saveprint.Anchor = XAnchor.RB; btn_saveprint.Font = XFont.BtnFont; btn_saveprint.Size = XSize.BtnOne; btn_saveprint.Location = new Point(btn_save.Left - 180, btn_save.Top); btn_saveprint.TabIndex = XTab.Index(btn_save.TabIndex); btn_saveprint.Name = "btn_saveprint"; btn_saveprint.Text = "&SAVE + PRINT "; btn_saveprint.Themes = XTheme.PinkBtn; btn_saveprint.Click += new EventHandler(Btn_saveprint_click); btn_active.Anchor = XAnchor.RB; btn_active.Font = XFont.BtnFont; btn_active.Size = XSize.BtnOne; btn_active.Location = XLayout.BtnActive; btn_active.TabIndex = XTab.Index(btn_save.TabIndex); btn_active.Name = "btn_active"; btn_active.Text = "&Active"; btn_active.Click += new EventHandler(Btn_active_Click); txt_notes.TabIndex = btn_active.TabIndex + 1; #endregion [Properties of btn] #region [Print panel] print_panel.BorderStyle = BorderStyle.None; print_panel.Controls.Add(this.btn_print_close); print_panel.Controls.Add(this.lbl_print_header); print_panel.Controls.Add(this.check_original); print_panel.Controls.Add(this.check_duplicate); print_panel.Controls.Add(this.check_triplicate); print_panel.Controls.Add(this.check_fourplicate); print_panel.Location = new Point(600, 330); print_panel.Name = "print_panel"; print_panel.Size = new Size(357, 200); print_panel.TabIndex = 35; #region [Header] // btn_print_close.Anchor = AnchorStyles.Top | AnchorStyles.Right; btn_print_close.BackColor = Color.FromArgb(0, 97, 168); btn_print_close.Cursor = Cursors.Default; btn_print_close.FlatAppearance.BorderSize = 0; btn_print_close.FlatAppearance.MouseDownBackColor = Color.OrangeRed; btn_print_close.FlatAppearance.MouseOverBackColor = Color.Crimson; btn_print_close.FlatStyle = FlatStyle.Flat; btn_print_close.Font = new Font("Arial", 9.75F, FontStyle.Bold, GraphicsUnit.Point, 0); btn_print_close.ForeColor = Color.FromArgb(217, 237, 255); btn_print_close.Location = new Point(323, 3); btn_print_close.Name = "btn_print_close"; btn_print_close.Size = new Size(Theme.btn_close_width - 5, Theme.btn_close_height - 5); btn_print_close.TabIndex = 30; btn_print_close.Text = "X"; btn_print_close.UseVisualStyleBackColor = false; btn_print_close.Click += new EventHandler(Btn_close_Click); // lbl_print_header.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; lbl_print_header.BackColor = Theme.F_header_Backcolor; lbl_print_header.Cursor = Cursors.Default; lbl_print_header.Font = Theme.F_header_Font; lbl_print_header.ForeColor = Theme.F_headerText_Fontcolor; lbl_print_header.Location = new Point(6, 0); lbl_print_header.Name = "lbl_print_header"; lbl_print_header.Size = new Size(345, 30); lbl_print_header.Text = "Print Option"; lbl_print_header.TextAlign = ContentAlignment.MiddleCenter; // #endregion [Header] check_original.Anchor = (AnchorStyles.Top | AnchorStyles.Left); check_original.AutoSize = true; check_original.Location = new Point(35, 50); check_original.Name = "check_original"; check_original.Size = new Size(125, 17); check_original.TabIndex = 1; check_original.Text = "Original Copy"; check_original.UseVisualStyleBackColor = true; check_original.Checked = true; //check_original.CheckedChanged += new EventHandler(radio_billed_CheckedChanged); // check_duplicate.Anchor = (AnchorStyles.Top | AnchorStyles.Left); check_duplicate.AutoSize = true; check_duplicate.Location = new Point(check_original.Left, check_original.Top + 35); check_duplicate.Name = "check_duplicate"; check_duplicate.Size = new Size(125, 17); check_duplicate.TabIndex = 1; check_duplicate.Text = "Duplicate Copy"; check_duplicate.UseVisualStyleBackColor = true; check_duplicate.Checked = true; //check_duplicate.CheckedChanged += new EventHandler(radio_billed_CheckedChanged); // check_triplicate.Anchor = (AnchorStyles.Top | AnchorStyles.Left); check_triplicate.AutoSize = true; check_triplicate.Location = new Point(check_duplicate.Left, check_duplicate.Top + 35); check_triplicate.Name = "check_triplicate"; check_triplicate.Size = new Size(125, 17); check_triplicate.TabIndex = 1; check_triplicate.Text = "Triplicate Copy"; check_triplicate.UseVisualStyleBackColor = true; check_triplicate.Checked = true; //check_triplicate.CheckedChanged += new EventHandler(radio_billed_CheckedChanged); // check_fourplicate.Anchor = (AnchorStyles.Top | AnchorStyles.Left); check_fourplicate.AutoSize = true; check_fourplicate.Location = new Point(check_triplicate.Left, check_triplicate.Top + 35); check_fourplicate.Name = "check_fourplicate"; check_fourplicate.Size = new Size(125, 17); check_fourplicate.TabIndex = 1; check_fourplicate.Text = "Quadruplicate Copy"; check_fourplicate.UseVisualStyleBackColor = true; //check_fourplicate.CheckedChanged += new EventHandler(radio_billed_CheckedChanged); #endregion [Print panel] #endregion [finner_panel] #region [FPurchase] this.AutoScaleDimensions = new SizeF(6F, 13F); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add(this.split_container); this.Name = "fPurchase"; this.Size = new Size(Screen.PrimaryScreen.Bounds.Width, ClientSize.Height); this.split_container.Panel1.ResumeLayout(false); this.split_container.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(editgrid)).EndInit(); ((ISupportInitialize)(this.split_container)).EndInit(); this.split_container.ResumeLayout(false); this.fpanel.ResumeLayout(false); this.finner_panel.ResumeLayout(false); this.finner_panel.PerformLayout(); this.ResumeLayout(false); #endregion [Fpost] }
public override EvasObject CreateContent(EvasObject parent) { if (_conformant == null) { return(null); } Box box = new ColoredBox(parent); box.Show(); #region ModalSheets MModalSheets modalSheets = new MModalSheets(_conformant, MModalSheetsDirection.Side); modalSheets.Show(); Label label1 = new Label(parent) { Text = "<span font_size=35 color=#a8a8a8>Labels</span>", AlignmentX = 0, }; label1.Show(); var check1 = new MCheckBox(parent) { Text = "Events", MinimumWidth = 400, }; check1.Show(); var check2 = new MCheckBox(parent) { Text = "Personal", IsChecked = true, MinimumWidth = 400, }; check2.Show(); var check3 = new MCheckBox(parent) { Text = "Project", IsChecked = true, MinimumWidth = 400, }; check3.Show(); var check4 = new MCheckBox(parent) { Text = "Reminders", MinimumWidth = 400, }; check4.Show(); var check5 = new MCheckBox(parent) { Text = "Work", MinimumWidth = 400, }; check5.Show(); var contents = new Box(_conformant) { IsHorizontal = true, AlignmentX = -1, AlignmentY = -1, WeightX = 1, WeightY = 1, BackgroundColor = Color.White, }; contents.Show(); contents.SetPadding(45, 45); var contents1 = new Box(_conformant) { IsHorizontal = true, }; contents1.Show(); contents1.SetPadding(45, 45); contents.PackEnd(contents1); var contents2 = new Box(_conformant) { IsHorizontal = false, AlignmentX = 0, AlignmentY = 0, WeightX = 1, WeightY = 0, }; contents2.Show(); contents2.SetPadding(45, 45); contents.PackEnd(contents2); var contents3 = new Box(_conformant) { IsHorizontal = false, }; contents3.Show(); contents3.SetPadding(45, 45); contents2.PackEnd(contents3); contents2.PackEnd(label1); contents2.PackEnd(check1); contents2.PackEnd(check2); contents2.PackEnd(check3); contents2.PackEnd(check4); contents2.PackEnd(check5); modalSheets.SetContent(contents); #endregion #region Buttons Box btbox = new Box(parent) { WeightX = 1, WeightY = 0.3, AlignmentX = -1, AlignmentY = -1, }; btbox.Show(); box.PackEnd(btbox); MButton button1 = new MButton(parent) { Text = "Open MModalSideSheets", MinimumWidth = 600, AlignmentY = 0, WeightY = 0.3, }; button1.Show(); button1.Clicked += (s, e) => { modalSheets.IsOpen = true; }; btbox.PackEnd(button1); #endregion return(box); }
public override void Run(Window window) { Conformant conformant = new Conformant(window); conformant.Show(); Box box = new ColoredBox(window); conformant.SetContent(box); box.Show(); #region ThemeButton Box hbox = new Box(window) { IsHorizontal = true, WeightX = 1, WeightY = 0.2, AlignmentX = -1, AlignmentY = -1, }; hbox.Show(); box.PackEnd(hbox); var defaultColor = new MButton(window) { Text = "default", MinimumWidth = 200, WeightY = 1, AlignmentY = 0.5 }; var light = new MButton(window) { Text = "light", MinimumWidth = 200, WeightY = 1, AlignmentY = 0.5 }; var dark = new MButton(window) { Text = "Dark", MinimumWidth = 200, WeightY = 1, AlignmentY = 0.5 }; defaultColor.Show(); light.Show(); dark.Show(); hbox.PackEnd(defaultColor); hbox.PackEnd(light); hbox.PackEnd(dark); defaultColor.Clicked += (s, e) => MColors.Current = MColors.Default; light.Clicked += (s, e) => MColors.Current = MColors.Light; dark.Clicked += (s, e) => MColors.Current = MColors.Dark; #endregion var check = new MCheckBox(window) { Text = "CheckBox", MinimumWidth = 400, WeightY = 1, AlignmentY = 0.5 }; box.PackEnd(check); check.Show(); var check2 = new MCheckBox(window) { IsEnabled = false, IsChecked = true, Text = "Disabled, Checked", MinimumWidth = 400, WeightY = 1, AlignmentY = 0.5 }; box.PackEnd(check2); check2.Show(); var check3 = new MCheckBox(window) { IsEnabled = false, IsChecked = false, Text = "Disabled", MinimumWidth = 400, WeightY = 1, AlignmentY = 0.5 }; box.PackEnd(check3); check3.Show(); var check4 = new MCheckBox(window) { IsEnabled = true, Text = "Custom Color", Color = Color.FromHex("#E30425"), MinimumWidth = 400, WeightY = 1, AlignmentY = 0.5 }; box.PackEnd(check4); check4.Show(); var check5 = new MCheckBox(window) { IsEnabled = false, IsChecked = true, Text = "Custom Color", Color = Color.FromHex("#E30425"), MinimumWidth = 400, WeightY = 1, AlignmentY = 0.5 }; box.PackEnd(check5); check5.Show(); }
private void Initialize() { #region [declare new] components = new Container(); splitTimer = new Timer(components); split_container = new SplitContainer(); fpanel = new XShadowPanel(); finner_panel = new Panel(); btn_list = new OfficeButton(); btn_new = new OfficeButton(); btn_edit = new OfficeButton(); btn_delete = new OfficeButton(); btn_print = new OfficeButton(); btn_splitter = new OfficeButton(); lbl_header = new Header(); btn_close = new CloseButton(); txt_databases_id = new LookupBox(); lbl_databases_id = new XLabel(); txt_tables_name = new XTextBox(); lbl_tables_name = new XLabel(); txt_tables_alias = new XTextBox(); lbl_tables_alias = new XLabel(); txt_db_databases = new LookupBox(); lbl_db_databases = new XLabel(); txt_db_tables_name = new LookupBox(); lbl_db_tables_name = new XLabel(); txt_namespaces_id = new LookupBox(); lbl_namespaces = new XLabel(); btn_grid2 = new OfficeButton(); chk_WithSub = new MCheckBox(); DataGridViewCellStyle dataGridViewCellStyle1 = new DataGridViewCellStyle(); DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle(); DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle(); DataGridViewCellStyle dataGridViewCellStyle4 = new DataGridViewCellStyle(); DataGridViewCellStyle dataGridViewCellStyle5 = new DataGridViewCellStyle(); editgrid = new EditGridView(); editgrid_2 = new EditGridView(); //txt_notes = new RichTextBox(); //lbl_notes = new XLabel(); btn_save = new OfficeButton(); btn_active = new OfficeButton(); #endregion [declare new] #region [container suspend] ((ISupportInitialize)(split_container)).BeginInit(); ((ISupportInitialize)(editgrid)).BeginInit(); ((ISupportInitialize)(editgrid_2)).BeginInit(); split_container.Panel1.SuspendLayout(); split_container.Panel2.SuspendLayout(); split_container.SuspendLayout(); fpanel.SuspendLayout(); finner_panel.SuspendLayout(); SuspendLayout(); #endregion [container suspend] #region [splitTimer] splitTimer.Interval = 2; splitTimer.Tick += new EventHandler(SplitTimer_Tick); #endregion [splitTimer] #region [split_container] split_container.Dock = DockStyle.Fill; split_container.Location = new Point(0, 0); split_container.Name = "split_container"; split_container.BackColor = XTheme.Splitcontainer_colour; split_container.Size = XSize.FSplitcontainer; split_container.SplitterDistance = XSize.Screen_Width; split_container.TabIndex = XTab.Splitcontainer; // split_container.Panel1 split_container.Panel1.Controls.Add(fpanel); #region [split_container.Panel2] split_container.Panel2.Controls.Add(btn_print); split_container.Panel2.Controls.Add(btn_delete); split_container.Panel2.Controls.Add(btn_edit); split_container.Panel2.Controls.Add(btn_new); split_container.Panel2.Controls.Add(btn_list); split_container.Panel2.Controls.Add(btn_splitter); btn_list.Font = XFont.BtnFont; btn_list.Location = XLayout.FormFirstBtn; btn_list.Size = XSize.BtnOne; btn_list.TabIndex = 1; btn_list.Name = "btn_list"; btn_list.Text = "&List"; btn_list.Themes = XTheme.BlueBtn; btn_list.Click += Btn_list_Click; btn_new.Font = XFont.BtnFont; btn_new.Location = XLayout.BtnLocation(btn_list.Location); btn_new.Size = XSize.BtnOne; btn_new.TabIndex = XTab.Index(btn_list.TabIndex); btn_new.Name = "btn_new"; btn_new.Text = "&New"; btn_new.Themes = XTheme.BlueBtn; btn_new.Click += Btn_new_Click; btn_edit.Font = XFont.BtnFont; btn_edit.Location = XLayout.BtnLocation(btn_new.Location); btn_edit.Size = XSize.BtnOne; btn_edit.TabIndex = XTab.Index(btn_new.TabIndex); btn_edit.Name = "btn_edit"; btn_edit.Text = "&Edit"; btn_edit.Themes = XTheme.BlueBtn; btn_edit.Click += Btn_edit_Click; btn_delete.Font = XFont.BtnFont; btn_delete.Location = XLayout.BtnLocation(btn_edit.Location); btn_delete.Size = XSize.BtnOne; btn_delete.TabIndex = XTab.Index(btn_edit.TabIndex); btn_delete.Name = "btn_delete"; btn_delete.Text = "&Delete"; btn_delete.Themes = XTheme.BlueBtn; btn_delete.Click += Btn_delete_Click; btn_print.Font = XFont.BtnFont; btn_print.Location = XLayout.BtnLocation(btn_delete.Location); btn_print.Size = XSize.BtnOne; btn_print.TabIndex = XTab.Index(btn_delete.TabIndex); btn_print.Name = "btn_print"; btn_print.Text = "&Print"; btn_print.Themes = XTheme.BlueBtn; btn_print.Click += Btn_print_Click; btn_splitter.Font = XFont.BtnFont; btn_splitter.Location = XLayout.Splitter; btn_splitter.Size = XSize.Splitter; btn_splitter.TabIndex = XTab.Index(btn_print.TabIndex); btn_splitter.Name = "btn_splitter"; btn_splitter.Text = "⁞⁞"; btn_splitter.Themes = XTheme.WhiteBtn; btn_splitter.Click += new EventHandler(Btn_splitter_Click); #endregion [split_container.Panel2] #endregion [split_container] #region [fpanel] fpanel.Name = "fpanel"; fpanel.Anchor = XAnchor.LTR; fpanel.Size = XSize.FPanel; fpanel.Location = XLayout.FPanel; fpanel.BackColor = XTheme.FPanel; fpanel.Controls.Add(finner_panel); fpanel.Controls.Add(btn_close); fpanel.Controls.Add(lbl_header); #endregion [fpanel] #region [finner_panel] finner_panel.Anchor = XAnchor.LTR; finner_panel.Cursor = Cursors.Default; finner_panel.Name = "finner_panel"; finner_panel.Size = XSize.FInnerPanel; finner_panel.Location = XLayout.FInnerPanel; finner_panel.BackColor = XTheme.FInnerpanel; finner_panel.AutoScroll = true; #region [adding controls] // //finner_panel.Controls.Add(txt_notes); //finner_panel.Controls.Add(lbl_notes); finner_panel.Controls.Add(lbl_databases_id); finner_panel.Controls.Add(txt_databases_id); finner_panel.Controls.Add(txt_tables_name); finner_panel.Controls.Add(lbl_tables_name); finner_panel.Controls.Add(txt_tables_alias); finner_panel.Controls.Add(lbl_tables_alias); finner_panel.Controls.Add(txt_db_databases); finner_panel.Controls.Add(lbl_db_databases); finner_panel.Controls.Add(txt_db_tables_name); finner_panel.Controls.Add(lbl_db_tables_name); finner_panel.Controls.Add(txt_namespaces_id); finner_panel.Controls.Add(lbl_namespaces); finner_panel.Controls.Add(btn_grid2); finner_panel.Controls.Add(chk_WithSub); finner_panel.Controls.Add(editgrid_2); finner_panel.Controls.Add(editgrid); finner_panel.Controls.Add(btn_save); finner_panel.Controls.Add(btn_active); #endregion [adding controls] #region [Header] btn_close.Click += new EventHandler(Btn_close_Click); lbl_header.Text = "Bill Tables"; lbl_header.BackColor = Color.Purple; #endregion [Header] #region [Properties of control] lbl_databases_id.Font = XFont.Font_10B; lbl_databases_id.Name = "lbl_databases_id"; lbl_databases_id.Text = " Databases"; lbl_databases_id.Anchor = XAnchor.LT; lbl_databases_id.TextAlign = ContentAlignment.MiddleLeft; lbl_databases_id.ForeColor = XFontColor.Lbl_ForeColor; lbl_databases_id.Size = XSize.OneLabel; lbl_databases_id.Location = XLayout.FirstLabel; txt_databases_id.Font = XFont.TxtFont; txt_databases_id.ForeColor = XFontColor.TxtFontColor; txt_databases_id.BackColor = XTheme.TxtBackcolor; txt_databases_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_databases_id.Name = "txt_databases_id"; txt_databases_id.Anchor = XAnchor.LTR; txt_databases_id.Size = XSize.TwoText; txt_databases_id.Location = XLayout.FirstText; txt_databases_id.TabIndex = XTab.Txt_TabIndex; txt_databases_id.Enter += new EventHandler(Txt_databases_id_Enter); lbl_db_databases.Font = XFont.Font_10B; lbl_db_databases.Name = "lbl_databases_id"; lbl_db_databases.Text = " Db "; lbl_db_databases.Anchor = XAnchor.LT; lbl_db_databases.TextAlign = ContentAlignment.MiddleLeft; lbl_db_databases.ForeColor = XFontColor.Lbl_ForeColor; lbl_db_databases.Size = XSize.TwoLabel; lbl_db_databases.Location = XLayout.R1_2Label_2(lbl_databases_id.Location); txt_db_databases.Font = XFont.TxtFont; txt_db_databases.ForeColor = XFontColor.TxtFontColor; txt_db_databases.BackColor = XTheme.TxtBackcolor; txt_db_databases.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_db_databases.Name = "txt_databases_id"; txt_db_databases.Anchor = XAnchor.LTR; txt_db_databases.Size = XSize.TwoText; txt_db_databases.Location = XLayout.R1_2Text_2(txt_databases_id.Location); txt_db_databases.TabIndex = XTab.Txt_TabIndex; //txt_db_databases.Enter += new EventHandler(Txt_db_); lbl_tables_name.Font = XFont.Font_10B; lbl_tables_name.Name = "lbl_tables_name"; lbl_tables_name.Text = " DB Table"; lbl_tables_name.Anchor = XAnchor.LT; lbl_tables_name.TextAlign = ContentAlignment.MiddleLeft; lbl_tables_name.ForeColor = XFontColor.Lbl_ForeColor; lbl_tables_name.Size = XSize.OneLabel; lbl_tables_name.Location = XLayout.VLocation(lbl_databases_id.Location); txt_tables_name.Font = XFont.TxtFont; txt_tables_name.ForeColor = XFontColor.TxtFontColor; txt_tables_name.BackColor = XTheme.TxtBackcolor; txt_tables_name.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_tables_name.Name = "txt_tables_name"; txt_tables_name.Anchor = XAnchor.LTR; txt_tables_name.Size = XSize.TwoText; txt_tables_name.Location = XLayout.VLocation(txt_databases_id.Location); txt_tables_name.TabIndex = XTab.Index(txt_databases_id.TabIndex); txt_tables_name.Enter += new EventHandler(Txt_tables_name_Enter); lbl_db_tables_name.Font = XFont.Font_10B; lbl_db_tables_name.Name = "lbl_tables_name"; lbl_db_tables_name.Text = " Tables name"; lbl_db_tables_name.Anchor = XAnchor.LT; lbl_db_tables_name.TextAlign = ContentAlignment.MiddleLeft; lbl_db_tables_name.ForeColor = XFontColor.Lbl_ForeColor; lbl_db_tables_name.Size = XSize.TwoLabel; lbl_db_tables_name.Location = XLayout.R1_2Label_2(lbl_tables_name.Location); txt_db_tables_name.Font = XFont.TxtFont; txt_db_tables_name.ForeColor = XFontColor.TxtFontColor; txt_db_tables_name.BackColor = XTheme.TxtBackcolor; txt_db_tables_name.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_db_tables_name.Name = "txt_db_tables_name"; txt_db_tables_name.Anchor = XAnchor.LTR; txt_db_tables_name.Size = XSize.TwoText; txt_db_tables_name.Location = XLayout.R1_2Text_2(txt_tables_name.Location); txt_db_tables_name.TabIndex = XTab.Index(txt_databases_id.TabIndex); txt_db_tables_name.Enter += new EventHandler(Txt_tables_name_Enter); lbl_namespaces.Font = XFont.Font_10B; lbl_namespaces.Name = "lbl_tables_name"; lbl_namespaces.Text = " Namespaces"; lbl_namespaces.Anchor = XAnchor.LT; lbl_namespaces.TextAlign = ContentAlignment.MiddleLeft; lbl_namespaces.ForeColor = XFontColor.Lbl_ForeColor; lbl_namespaces.Size = XSize.TwoLabel; lbl_namespaces.Location = XLayout.R2_2Label_2(lbl_db_tables_name.Location); txt_namespaces_id.Font = XFont.TxtFont; txt_namespaces_id.ForeColor = XFontColor.TxtFontColor; txt_namespaces_id.BackColor = XTheme.TxtBackcolor; txt_namespaces_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_namespaces_id.Name = "txt_namespaces"; txt_namespaces_id.Anchor = XAnchor.LTR; txt_namespaces_id.Size = XSize.TwoText; txt_namespaces_id.Location = XLayout.R2_2Text_2(txt_db_tables_name.Location); txt_namespaces_id.TabIndex = XTab.Index(txt_databases_id.TabIndex); txt_namespaces_id.Enter += new EventHandler(Txt_tables_name_Enter); lbl_tables_alias.Font = XFont.Font_10B; lbl_tables_alias.Name = "lbl_tables_alias"; lbl_tables_alias.Text = " Tables alias"; lbl_tables_alias.Anchor = XAnchor.LT; lbl_tables_alias.TextAlign = ContentAlignment.MiddleLeft; lbl_tables_alias.ForeColor = XFontColor.Lbl_ForeColor; lbl_tables_alias.Size = XSize.OneLabel; lbl_tables_alias.Location = XLayout.VLocation(lbl_tables_name.Location); txt_tables_alias.Font = XFont.TxtFont; txt_tables_alias.ForeColor = XFontColor.TxtFontColor; txt_tables_alias.BackColor = XTheme.TxtBackcolor; txt_tables_alias.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor; txt_tables_alias.Name = "txt_tables_alias"; txt_tables_alias.Anchor = XAnchor.LTR; txt_tables_alias.Size = XSize.TwoText; txt_tables_alias.Location = XLayout.VLocation(txt_tables_name.Location); txt_tables_alias.TabIndex = XTab.Index(txt_tables_name.TabIndex); txt_tables_alias.Enter += new EventHandler(Txt_tables_alias_Enter); btn_grid2.Anchor = XAnchor.RB; btn_grid2.Font = XFont.BtnFont; btn_grid2.Size = new Size(60, 25); btn_grid2.Location = new Point(txt_tables_alias.Right + 20, txt_tables_alias.Top); btn_grid2.TabIndex = XTab.Index(txt_tables_alias.TabIndex); btn_grid2.Name = "btn_grid2"; btn_grid2.Text = "&GRID"; btn_grid2.Themes = XTheme.PinkBtn; btn_grid2.Click += new EventHandler(Btn_grid2_Click); chk_WithSub.Anchor = XAnchor.RB; chk_WithSub.Size = new Size(150, 25); chk_WithSub.Location = new Point(btn_grid2.Right + 30, txt_tables_alias.Top); chk_WithSub.TabIndex = XTab.Index(txt_tables_alias.TabIndex); chk_WithSub.Name = "chk_WithSub"; chk_WithSub.Text = "With SUB"; #region [editGridView] // editgrid.AllowNewRowOnEnterKey = true; editgrid.AllowUserToAddRows = false; editgrid.AllowUserToDeleteRows = false; editgrid.AllowUserToResizeRows = false; // dataGridViewCellStyle1.BackColor = Color.White; dataGridViewCellStyle1.ForeColor = Color.Black; dataGridViewCellStyle1.SelectionBackColor = Color.FromArgb(255, 255, 204); dataGridViewCellStyle1.SelectionForeColor = Color.FromArgb(252, 0, 11); // editgrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; editgrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; editgrid.BackgroundColor = Color.White; editgrid.CellBorderStyle = DataGridViewCellBorderStyle.Custom; editgrid.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Custom; // dataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle2.BackColor = Color.FromArgb(132, 192, 96); dataGridViewCellStyle2.Font = new Font("Microsoft Sans Serif", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 0); dataGridViewCellStyle2.ForeColor = Color.White; dataGridViewCellStyle2.SelectionBackColor = SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = DataGridViewTriState.True; // editgrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; editgrid.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; // dataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle3.BackColor = Color.White; dataGridViewCellStyle3.Font = new Font("Microsoft Sans Serif", 11.25F, FontStyle.Regular, GraphicsUnit.Point, 0); dataGridViewCellStyle3.ForeColor = Color.Black; dataGridViewCellStyle3.SelectionBackColor = Color.FromArgb(255, 255, 204); dataGridViewCellStyle3.SelectionForeColor = Color.FromArgb(252, 0, 11); dataGridViewCellStyle3.WrapMode = DataGridViewTriState.False; // editgrid.DefaultCellStyle = dataGridViewCellStyle3; editgrid.EnableContextMenu = true; editgrid.EnableHeadersVisualStyles = false; editgrid.GridColor = Color.SeaGreen; editgrid.Location = new Point(lbl_tables_alias.Left, lbl_tables_alias.Bottom + 10); editgrid.MultiSelect = false; editgrid.Name = "editGridView"; editgrid.RowHeadersVisible = false; editgrid.SelectionMode = DataGridViewSelectionMode.CellSelect; editgrid.Size = new Size(finner_panel.Width - 50, 400); editgrid.StandardTab = true; editgrid.TabIntoComma = false; editgrid.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; editgrid.RowsLimit = 100; // #endregion [editGridView] #region [editgrid_2View] // editgrid_2.AllowNewRowOnEnterKey = true; editgrid_2.AllowUserToAddRows = false; editgrid_2.AllowUserToDeleteRows = false; editgrid_2.AllowUserToResizeRows = false; // editgrid_2.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; editgrid_2.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; editgrid_2.BackgroundColor = Color.White; editgrid_2.CellBorderStyle = DataGridViewCellBorderStyle.Custom; editgrid_2.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Custom; // dataGridViewCellStyle4.Alignment = DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle4.BackColor = Color.Purple; dataGridViewCellStyle4.Font = new Font("Microsoft Sans Serif", 13.25F, FontStyle.Regular, GraphicsUnit.Point, 0); dataGridViewCellStyle4.ForeColor = Color.White; dataGridViewCellStyle4.SelectionBackColor = SystemColors.Highlight; dataGridViewCellStyle4.SelectionForeColor = SystemColors.HighlightText; dataGridViewCellStyle4.WrapMode = DataGridViewTriState.True; editgrid_2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; editgrid_2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; // editgrid_2.DefaultCellStyle = dataGridViewCellStyle3; editgrid_2.EnableContextMenu = true; editgrid_2.EnableHeadersVisualStyles = false; editgrid_2.GridColor = Color.OrangeRed; editgrid_2.Location = new Point(lbl_tables_alias.Left + 20, lbl_tables_alias.Bottom + 20); editgrid_2.MultiSelect = false; editgrid_2.Name = "editgrid_2View"; editgrid_2.RowHeadersVisible = false; editgrid_2.SelectionMode = DataGridViewSelectionMode.CellSelect; editgrid_2.Size = new Size(finner_panel.Width - 70, 400); editgrid_2.StandardTab = true; editgrid_2.TabIntoComma = false; editgrid_2.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; editgrid_2.RowsLimit = 100; // #endregion [editgrid_2View] //lbl_notes.Font = XFont.Font_10B; //lbl_notes.ForeColor = XFontColor.Lbl_ForeColor; //lbl_notes.Location = XLayout.LblNotes; //lbl_notes.Size = XSize.LblNotes; //lbl_notes.Anchor = XAnchor.LB; //lbl_notes.Name = "lbl_notes"; //lbl_notes.Text = " Notes"; //lbl_notes.TextAlign = ContentAlignment.MiddleLeft; //lbl_notes.Click += new EventHandler(Lbl_notes_Click); //txt_notes.Font = Theme.txtFont; //txt_notes.ForeColor = Theme.txtForeColor; //txt_notes.BackColor = Theme.White; //txt_notes.Location = XLayout.TxtNotes; //txt_notes.Size = XSize.TxtNotes; //txt_notes.Name = "txt_notes"; //txt_notes.Anchor = XAnchor.LRB; //txt_notes.TabIndex = XTab.Index(txt_notes.TabIndex); //txt_notes.Enter += new EventHandler(Txt_notes_Enter); #endregion [Properties of control] #region [Properties of btn] btn_save.Anchor = XAnchor.RB; btn_save.Font = XFont.BtnFont; btn_save.Size = XSize.BtnOne; btn_save.Location = XLayout.BtnSave; btn_save.TabIndex = XTab.Index(txt_tables_alias.TabIndex); btn_save.Name = "btn_save"; btn_save.Text = "&SAVE"; btn_save.Themes = XTheme.BlueBtn; btn_save.Click += new EventHandler(Btn_save_click); btn_active.Anchor = XAnchor.RB; btn_active.Font = XFont.BtnFont; btn_active.Size = XSize.BtnOne; btn_active.Location = XLayout.BtnActive; btn_active.TabIndex = XTab.Index(btn_save.TabIndex); btn_active.Name = "btn_active"; btn_active.Text = "&Active"; btn_active.Click += new EventHandler(Btn_active_Click); //txt_notes.TabIndex = btn_active.TabIndex + 1; #endregion [Properties of btn] #endregion [finner_panel] #region [FTables] this.AutoScaleDimensions = new SizeF(6F, 13F); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add(this.split_container); this.Name = "fTables"; this.Size = new Size(Screen.PrimaryScreen.Bounds.Width, ClientSize.Height); this.split_container.Panel1.ResumeLayout(false); this.split_container.Panel2.ResumeLayout(false); ((ISupportInitialize)(this.split_container)).EndInit(); this.split_container.ResumeLayout(false); this.fpanel.ResumeLayout(false); this.finner_panel.ResumeLayout(false); this.finner_panel.PerformLayout(); this.ResumeLayout(false); #endregion [Fpost] }