Example #1
0
        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);
        }
Example #2
0
        private void Initialize()
        {
            lpanel       = new XShadowPanel();
            linner_panel = new Panel();
            btn_close    = new CloseButton();
            lbl_header   = new Header();

            rdo_unrefer   = new MRadioButton();
            rdo_refer     = new MRadioButton();
            rdo_showall   = new MRadioButton();
            rdo_notactive = new MRadioButton();

            txt_no           = new LookupBox();
            lbl_no           = new XLabel();
            txt_date         = new XTextBox();
            txt_datePicker   = new xDatepicker();
            lbl_date         = new XLabel();
            txt_Todate       = new XTextBox();
            txt_TodatePicker = new xDatepicker();
            lbl_dateTo       = new XLabel();
            txt_party        = new LookupBox();
            lbl_party        = new XLabel();
            btn_search       = new OfficeButton();

            //btn_quick = new OfficeButton();
            //Getno_panel = new Panel();
            //Getno_innerpanel = new ShadowBox();
            //txt_getno = new XTextBox();
            //lbl_getno = new XLabel();
            //btn_generate = new OfficeButton();

            btn_refresh = new OfficeButton();
            btn_new     = new OfficeButton();
            btn_edit    = new OfficeButton();
            btn_delete  = new OfficeButton();
            btn_print   = new OfficeButton();

            listgrid = new ListGridView();

            DataGridViewCellStyle dataGridViewCellStyle1 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle();

            lpanel.SuspendLayout();
            linner_panel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(listgrid)).BeginInit();
            SuspendLayout();

            linner_panel.Location = XLayout.LInnerPanel;
            linner_panel.Name     = "linner_panel";
            linner_panel.Size     = XSize.LInnerPanel;

            btn_close.Click += Btn_close_Click;

            lbl_header.Text = "Inward";

            #endregion [Initialize]

            #region [Add Control]

            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(txt_no);
            linner_panel.Controls.Add(lbl_no);
            linner_panel.Controls.Add(txt_date);
            linner_panel.Controls.Add(txt_datePicker);
            linner_panel.Controls.Add(lbl_date);
            linner_panel.Controls.Add(txt_Todate);
            linner_panel.Controls.Add(txt_TodatePicker);
            linner_panel.Controls.Add(lbl_dateTo);

            linner_panel.Controls.Add(txt_party);
            linner_panel.Controls.Add(lbl_party);
            linner_panel.Controls.Add(btn_search);

            linner_panel.Controls.Add(rdo_unrefer);
            linner_panel.Controls.Add(rdo_refer);
            linner_panel.Controls.Add(rdo_showall);
            linner_panel.Controls.Add(rdo_notactive);

            //linner_panel.Controls.Add(btn_quick);
            //linner_panel.Controls.Add(Getno_panel);

            linner_panel.Controls.Add(btn_refresh);
            linner_panel.Controls.Add(btn_new);
            linner_panel.Controls.Add(btn_edit);
            linner_panel.Controls.Add(btn_delete);
            linner_panel.Controls.Add(btn_print);

            linner_panel.Controls.Add(listgrid);

            #endregion [Add Control]

            #region [Search]

            lbl_no.Font      = XFont.Font_10B;
            lbl_no.Name      = "lbl_no";
            lbl_no.Text      = "No";
            lbl_no.TextAlign = ContentAlignment.MiddleCenter;
            lbl_no.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_no.Size      = new Size(40, 28);
            lbl_no.Location  = XLayout.FirstLabel;

            txt_no.Font              = XFont.TxtFont;
            txt_no.ForeColor         = XFontColor.TxtFontColor;
            txt_no.BackColor         = XTheme.TxtBackcolor;
            txt_no.Name              = "txt_no";
            txt_no.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_no.Size              = new Size(100, 28);
            txt_no.Anchor            = XAnchor.LT;
            txt_no.Location          = new Point(lbl_no.Right - 1, lbl_no.Top);
            txt_no.TabIndex          = 6;

            lbl_date.Font      = XFont.Font_10B;
            lbl_date.Name      = "lbl_date";
            lbl_date.Text      = "Date";
            lbl_date.TextAlign = ContentAlignment.MiddleCenter;
            lbl_date.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_date.Size      = new Size(50, 28);
            lbl_date.Location  = new Point(txt_no.Right + 10, txt_no.Top);

            txt_date.Font      = XFont.TxtFont;
            txt_date.ForeColor = XFontColor.TxtFontColor;
            txt_date.BackColor = XTheme.TxtBackcolor;
            txt_date.Name      = "txt_date";
            txt_date.Size      = new Size(140, 28);
            txt_date.Anchor    = XAnchor.LT;
            txt_date.Location  = new Point(lbl_date.Right - 1, lbl_date.Top);
            txt_date.TabIndex  = 7;

            txt_datePicker.Font         = XFont.TxtFont;
            txt_datePicker.ForeColor    = XFontColor.TxtFontColor;
            txt_datePicker.BackColor    = XTheme.TxtBackcolor;
            txt_datePicker.Name         = "txt_datePicker";
            txt_datePicker.CustomFormat = "  dd-MM-yyyy";
            txt_datePicker.Format       = DateTimePickerFormat.Custom;
            txt_datePicker.Size         = new Size(170, 28);
            txt_datePicker.Anchor       = XAnchor.LT;
            txt_datePicker.Location     = new Point(lbl_date.Right - 1, lbl_date.Top);
            txt_datePicker.TabIndex     = 7;
            txt_datePicker.TextChanged += Txt_datePicker_TextChanged;

            lbl_dateTo.Font      = XFont.Font_10B;
            lbl_dateTo.Name      = "lbl_date";
            lbl_dateTo.Text      = "To";
            lbl_dateTo.TextAlign = ContentAlignment.MiddleCenter;
            lbl_dateTo.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_dateTo.Size      = new Size(50, 28);
            lbl_dateTo.Location  = new Point(txt_datePicker.Right + 10, lbl_date.Top);

            txt_Todate.Font      = XFont.TxtFont;
            txt_Todate.ForeColor = XFontColor.TxtFontColor;
            txt_Todate.BackColor = XTheme.TxtBackcolor;
            txt_Todate.Name      = "txt_dateTo";
            txt_Todate.Size      = new Size(140, 28);
            txt_Todate.Anchor    = XAnchor.LT;
            txt_Todate.Location  = new Point(lbl_dateTo.Right - 1, lbl_date.Top);
            txt_Todate.TabIndex  = 7;

            txt_TodatePicker.Font         = XFont.TxtFont;
            txt_TodatePicker.ForeColor    = XFontColor.TxtFontColor;
            txt_TodatePicker.BackColor    = XTheme.TxtBackcolor;
            txt_TodatePicker.Name         = "txt_dateTopicker";
            txt_TodatePicker.CustomFormat = "  dd-MM-yyyy";
            txt_TodatePicker.Format       = DateTimePickerFormat.Custom;
            txt_TodatePicker.Size         = new Size(170, 28);
            txt_TodatePicker.Anchor       = XAnchor.LT;
            txt_TodatePicker.Location     = new Point(lbl_dateTo.Right - 1, lbl_date.Top);
            txt_TodatePicker.TabIndex     = 7;
            txt_TodatePicker.TextChanged += Txt_TodatePicker_TextChanged;


            lbl_party.Font      = XFont.Font_10B;
            lbl_party.Name      = "lbl_party";
            lbl_party.Text      = "Party";
            lbl_party.TextAlign = ContentAlignment.MiddleCenter;
            lbl_party.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_party.Size      = new Size(80, 28);
            lbl_party.Location  = new Point(txt_TodatePicker.Right + 10, txt_datePicker.Top);

            txt_party.Font              = XFont.TxtFont;
            txt_party.ForeColor         = XFontColor.TxtFontColor;
            txt_party.BackColor         = XTheme.TxtBackcolor;
            txt_party.Name              = "txt_party";
            txt_party.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_party.Size              = new Size(400, 28);
            txt_party.Anchor            = XAnchor.LT;
            txt_party.Location          = new Point(lbl_party.Right - 1, lbl_party.Top);
            txt_party.TabIndex          = 8;

            btn_search.Font     = XFont.BtnFont;
            btn_search.Location = new Point(txt_party.Right + 10, txt_party.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;

            #endregion [Search]

            #region [Radio btn]

            rdo_unrefer.Anchor          = XAnchor.TR;
            rdo_unrefer.AutoSize        = false;
            rdo_unrefer.Font            = XFont.TxtFont;
            rdo_unrefer.Location        = new Point(XSize.FPanel_width - 160, 60);
            rdo_unrefer.MouseLocation   = new Point(-1, -1);
            rdo_unrefer.Name            = "rdo_unrefer";
            rdo_unrefer.Size            = new Size(200, 30);
            rdo_unrefer.TabIndex        = 2;
            rdo_unrefer.Text            = "UN RECEIPTED";
            rdo_unrefer.CheckedChanged += new EventHandler(Rdo_unrefer_CheckedChanged);

            rdo_refer.Anchor          = XAnchor.TR;
            rdo_refer.AutoSize        = false;
            rdo_refer.Font            = XFont.TxtFont;
            rdo_refer.Location        = new Point(rdo_unrefer.Left, rdo_unrefer.Bottom + 20);
            rdo_refer.MouseLocation   = new Point(-1, -1);
            rdo_refer.Name            = "rdo_refer";
            rdo_refer.Size            = new Size(200, 30);
            rdo_refer.TabIndex        = 3;
            rdo_refer.Text            = " RECEIPTED";
            rdo_refer.CheckedChanged += new EventHandler(Rdo_refer_CheckedChanged);

            rdo_showall.Anchor          = XAnchor.TR;
            rdo_showall.AutoSize        = false;
            rdo_showall.Font            = XFont.TxtFont;
            rdo_showall.Location        = new Point(rdo_refer.Left, rdo_refer.Bottom + 20);
            rdo_showall.MouseLocation   = new Point(-1, -1);
            rdo_showall.Name            = "rdo_showall";
            rdo_showall.Size            = new Size(200, 30);
            rdo_showall.TabIndex        = 4;
            rdo_showall.Text            = " SHOW ALL";
            rdo_showall.CheckedChanged += new EventHandler(Rdo_showall_CheckedChanged);

            rdo_notactive.Anchor          = XAnchor.TR;
            rdo_notactive.AutoSize        = false;
            rdo_notactive.Font            = XFont.TxtFont;
            rdo_notactive.Location        = new Point(rdo_showall.Left, rdo_showall.Bottom + 20);
            rdo_notactive.MouseLocation   = new Point(-1, -1);
            rdo_notactive.Name            = "rdo_notactive";
            rdo_notactive.Size            = new Size(200, 30);
            rdo_notactive.TabIndex        = 6;
            rdo_notactive.Text            = "NOT ACTIVE";
            rdo_notactive.CheckedChanged += new EventHandler(Rdo_notactive_CheckedChanged);

            #endregion [Radio btn]

            #region [btn Properties]

            btn_refresh.Font     = XFont.BtnFont;
            btn_refresh.Location = XLayout.BtnLocation(rdo_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;

            //btn_quick.Font = XFont.BtnFont;
            //btn_quick.Location = XLayout.BtnLocation(btn_print.Location);
            //btn_quick.Size = XSize.BtnOne;
            //btn_quick.TabIndex = XTab.Index(btn_print.TabIndex);
            //btn_quick.Name = "btn_quick";
            //btn_quick.Text = "&Quick RECEIPT";
            //btn_quick.Themes = XTheme.PinkBtn;
            //btn_quick.Anchor = XAnchor.TR;
            //btn_quick.Click += Btn_quick_Click;

            #endregion [btn Properties]

            //#region[Get no Panel]

            //Getno_panel.Size = new Size(300, 150);
            //Getno_panel.Location = new Point(btn_print.Left - 250, btn_print.Bottom - 40);
            ////Getno_panel.BackColor = XTheme.FPanel;
            //Getno_panel.BackColor = Color.Orange;
            //Getno_panel.Controls.Add(Getno_innerpanel);
            //Getno_innerpanel.Controls.Add(txt_getno);
            //Getno_innerpanel.Controls.Add(lbl_getno);
            //Getno_innerpanel.Controls.Add(btn_generate);

            //Getno_innerpanel.Size = new Size(295, 145);
            //Getno_innerpanel.Location = new Point(2, 2);
            //Getno_innerpanel.BackColor = Color.White;

            //lbl_getno.Font = XFont.Font_10B;
            //lbl_getno.Name = "lbl_getno";
            //lbl_getno.Text = "No";
            //lbl_getno.TextAlign = ContentAlignment.MiddleCenter;
            //lbl_getno.ForeColor = XFontColor.Lbl_ForeColor;
            //lbl_getno.Size = new Size(150, 28);
            //lbl_getno.Location = new Point(80, 20);
            //lbl_getno.BorderStyle = BorderStyle.None;
            //txt_getno.Font = XFont.TxtFont;
            //txt_getno.ForeColor = XFontColor.TxtFontColor;
            //txt_getno.BackColor = XTheme.TxtBackcolor;
            //txt_getno.Name = "txt_getno";
            //txt_getno.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            //txt_getno.Size = new Size(150, 28);
            //txt_getno.Anchor = XAnchor.LT;
            //txt_getno.Location = new Point(lbl_getno.Left, lbl_getno.Bottom);

            //btn_generate.Font = XFont.BtnFont;
            //btn_generate.Location = new Point(lbl_getno.Left, lbl_getno.Bottom + 40);
            //btn_generate.Size = new Size(150, 30);
            //btn_generate.TabIndex = XTab.Index(btn_print.TabIndex);
            //btn_generate.Name = "btn_generate";
            //btn_generate.Text = "&Generate";
            //btn_generate.Themes = XTheme.RedBtn;
            //btn_generate.Anchor = XAnchor.TR;
            //btn_generate.Click += Btn_generate_Click;

            //#endregion[Get no Panel]

            #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]

            #region [List]

            AutoScaleDimensions = new SizeF(6F, 13F);
            AutoScaleMode       = AutoScaleMode.Font;
            Controls.Add(lpanel);
            Name = "LInward";
            Size = new Size(1000, 600);
            lpanel.ResumeLayout(false);
            linner_panel.ResumeLayout(false);
            linner_panel.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(listgrid)).EndInit();
            ResumeLayout(false);
        }
        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_ledgergroup_name = new XTextBox();
            lbl_ledgergroup_name = new XLabel();

            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();
            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(txt_ledgergroup_name);
            finner_panel.Controls.Add(lbl_ledgergroup_name);
            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 = "Ledger group";

            #endregion [Header]

            #region [Properties of control]

            lbl_ledgergroup_name.Font      = XFont.Font_10B;
            lbl_ledgergroup_name.Name      = "lbl_ledgergroup_name";
            lbl_ledgergroup_name.Text      = "   Ledger group";
            lbl_ledgergroup_name.Anchor    = XAnchor.LT;
            lbl_ledgergroup_name.TextAlign = ContentAlignment.MiddleLeft;
            lbl_ledgergroup_name.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_ledgergroup_name.Size      = XSize.OneLabel;
            lbl_ledgergroup_name.Location  = XLayout.FirstLabel;

            txt_ledgergroup_name.Font              = XFont.TxtFont;
            txt_ledgergroup_name.ForeColor         = XFontColor.TxtFontColor;
            txt_ledgergroup_name.BackColor         = XTheme.TxtBackcolor;
            txt_ledgergroup_name.Name              = "txt_ledgergroup_name";
            txt_ledgergroup_name.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_ledgergroup_name.Size              = XSize.OneText;
            txt_ledgergroup_name.Anchor            = XAnchor.LTR;
            txt_ledgergroup_name.Location          = XLayout.FirstText;
            txt_ledgergroup_name.TabIndex          = XTab.Txt_TabIndex;
            txt_ledgergroup_name.Enter            += new EventHandler(Txt_ledgergroup_name_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_ledgergroup_name.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 [FLedgergroup]

            this.AutoScaleDimensions = new SizeF(6F, 13F);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.Controls.Add(this.split_container);
            this.Name = "fLedgergroup";
            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]
        }
Example #4
0
        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_receipt_no     = new XTextBox();
            lbl_receipt_no     = new XLabel();
            txt_receipt_date   = new xDatepicker();
            lbl_receipt_date   = new XLabel();
            txt_party_id       = new LookupBox();
            lbl_party_id       = new XLabel();
            txt_receipttype_id = new LookupBox();
            lbl_receipttype_id = new XLabel();
            txt_cheq_no        = new XTextBox();
            lbl_cheq_no        = new XLabel();
            txt_receipt_amount = new XTextBox();
            lbl_receipt_amount = new XLabel();
            txt_cheq_date      = new XTextBox();
            lbl_cheq_date      = new XLabel();
            txt_bank_id        = new LookupBox();
            lbl_bank_id        = new XLabel();
            editgrid           = new EditGridView();
            txt_total_amount   = new XTextBox();
            lbl_total_amount   = new XLabel();

            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();
            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(txt_receipt_no);
            finner_panel.Controls.Add(lbl_receipt_no);
            finner_panel.Controls.Add(txt_receipt_date);
            finner_panel.Controls.Add(lbl_receipt_date);
            finner_panel.Controls.Add(txt_party_id);
            finner_panel.Controls.Add(lbl_party_id);
            finner_panel.Controls.Add(txt_receipttype_id);
            finner_panel.Controls.Add(lbl_receipttype_id);
            finner_panel.Controls.Add(txt_cheq_no);
            finner_panel.Controls.Add(lbl_cheq_no);
            finner_panel.Controls.Add(txt_receipt_amount);
            finner_panel.Controls.Add(lbl_receipt_amount);
            finner_panel.Controls.Add(txt_cheq_date);
            finner_panel.Controls.Add(lbl_cheq_date);
            finner_panel.Controls.Add(txt_bank_id);
            finner_panel.Controls.Add(lbl_bank_id);
            finner_panel.Controls.Add(txt_total_amount);
            finner_panel.Controls.Add(lbl_total_amount);
            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 = "Receipt";

            #endregion [Header]

            #region [Properties of control]

            lbl_receipt_no.Font      = XFont.Font_10B;
            lbl_receipt_no.Name      = "lbl_receipt_no";
            lbl_receipt_no.Text      = "   Receipt no";
            lbl_receipt_no.Anchor    = XAnchor.LT;
            lbl_receipt_no.TextAlign = ContentAlignment.MiddleLeft;
            lbl_receipt_no.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_receipt_no.Size      = XSize.OneLabel;
            lbl_receipt_no.Location  = XLayout.FirstLabel;

            txt_receipt_no.Font              = XFont.TxtFont;
            txt_receipt_no.ForeColor         = XFontColor.TxtFontColor;
            txt_receipt_no.BackColor         = XTheme.TxtBackcolor;
            txt_receipt_no.Name              = "txt_receipt_no";
            txt_receipt_no.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_receipt_no.TextAlign         = HorizontalAlignment.Left;
            txt_receipt_no.Size              = XSize.TwoText;
            txt_receipt_no.Anchor            = XAnchor.LT;
            txt_receipt_no.Location          = XLayout.FirstText;
            txt_receipt_no.TabIndex          = XTab.Txt_TabIndex;
            txt_receipt_no.Enter            += new EventHandler(Txt_receipt_no_Enter);


            lbl_receipt_date.Font      = XFont.Font_10B;
            lbl_receipt_date.Name      = "lbl_receipt_date";
            lbl_receipt_date.Text      = "   Receipt date";
            lbl_receipt_date.Anchor    = XAnchor.LT;
            lbl_receipt_date.TextAlign = ContentAlignment.MiddleLeft;
            lbl_receipt_date.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_receipt_date.Size      = XSize.TwoLabel;
            lbl_receipt_date.Location  = XLayout.R1_2Label_2(lbl_receipt_no.Location);

            txt_receipt_date.Font         = XFont.TxtFont;
            txt_receipt_date.ForeColor    = XFontColor.TxtFontColor;
            txt_receipt_date.BackColor    = XTheme.TxtBackcolor;
            txt_receipt_date.Name         = "txt_receipt_date";
            txt_receipt_date.CustomFormat = "dd-MM-yyyy";
            txt_receipt_date.Format       = DateTimePickerFormat.Custom;
            txt_receipt_date.Size         = XSize.TwoText;
            txt_receipt_date.Anchor       = XAnchor.LTR;
            txt_receipt_date.Location     = XLayout.R1_2Text_2(txt_receipt_no.Location);
            txt_receipt_date.TabIndex     = XTab.Index(txt_receipt_no.TabIndex);
            txt_receipt_date.Enter       += new EventHandler(Txt_receipt_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_receipt_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_receipt_date.Location);
            txt_party_id.TabIndex          = XTab.Index(txt_receipt_date.TabIndex);
            txt_party_id.Enter            += new EventHandler(Txt_party_id_Enter);


            lbl_receipttype_id.Font      = XFont.Font_10B;
            lbl_receipttype_id.Name      = "lbl_receipttype_id";
            lbl_receipttype_id.Text      = "Receipt type";
            lbl_receipttype_id.Anchor    = XAnchor.LT;
            lbl_receipttype_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_receipttype_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_receipttype_id.Size      = XSize.OneLabel;
            lbl_receipttype_id.Location  = XLayout.R2_2Label_1(lbl_party_id.Location);

            txt_receipttype_id.Font              = XFont.TxtFont;
            txt_receipttype_id.ForeColor         = XFontColor.TxtFontColor;
            txt_receipttype_id.BackColor         = XTheme.TxtBackcolor;
            txt_receipttype_id.Name              = "txt_receipttype_id";
            txt_receipttype_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_receipttype_id.TextAlign         = HorizontalAlignment.Left;
            txt_receipttype_id.Size              = XSize.TwoText;
            txt_receipttype_id.Anchor            = XAnchor.LT;
            txt_receipttype_id.Location          = XLayout.R2_2Text_1(txt_party_id.Location);
            txt_receipttype_id.TabIndex          = XTab.Index(txt_party_id.TabIndex);
            txt_receipttype_id.Enter            += new EventHandler(Txt_receipttype_id_Enter);
            txt_receipttype_id.TextChanged      += Txt_receipttype_id_TextChanged;


            lbl_cheq_no.Font      = XFont.Font_10B;
            lbl_cheq_no.Name      = "lbl_cheq_no";
            lbl_cheq_no.Text      = "   Cheq no";
            lbl_cheq_no.Anchor    = XAnchor.LT;
            lbl_cheq_no.TextAlign = ContentAlignment.MiddleLeft;
            lbl_cheq_no.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_cheq_no.Size      = XSize.OneLabel;
            lbl_cheq_no.Location  = XLayout.R2_2Label_1(lbl_receipttype_id.Location);

            txt_cheq_no.Font              = XFont.TxtFont;
            txt_cheq_no.ForeColor         = XFontColor.TxtFontColor;
            txt_cheq_no.BackColor         = XTheme.TxtBackcolor;
            txt_cheq_no.Name              = "txt_cheq_no";
            txt_cheq_no.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_cheq_no.TextAlign         = HorizontalAlignment.Left;
            txt_cheq_no.Size              = XSize.TwoText;
            txt_cheq_no.Anchor            = XAnchor.LT;
            txt_cheq_no.Location          = XLayout.R2_2Text_1(txt_receipttype_id.Location);
            txt_cheq_no.TabIndex          = XTab.Index(txt_receipttype_id.TabIndex);
            txt_cheq_no.Enter            += new EventHandler(Txt_cheq_no_Enter);


            lbl_receipt_amount.Font      = XFont.Font_10B;
            lbl_receipt_amount.Name      = "lbl_receipt_amount";
            lbl_receipt_amount.Text      = "       Amount";
            lbl_receipt_amount.Anchor    = XAnchor.LT;
            lbl_receipt_amount.TextAlign = ContentAlignment.MiddleLeft;
            lbl_receipt_amount.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_receipt_amount.Size      = new Size(XSize.TwoLabelWidth, 48);
            lbl_receipt_amount.Location  = XLayout.R2_2Label_2(lbl_receipttype_id.Location);

            txt_receipt_amount.Font              = XFont.Font_20B;
            txt_receipt_amount.ForeColor         = XFontColor.TxtFontColor;
            txt_receipt_amount.BackColor         = XTheme.TxtBackcolor;
            txt_receipt_amount.Name              = "txt_receipt_amount";
            txt_receipt_amount.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_receipt_amount.TextAlign         = HorizontalAlignment.Right;
            txt_receipt_amount.Size              = new Size(XSize.TwoTxtColumn, 56);
            txt_receipt_amount.Anchor            = XAnchor.LTR;
            txt_receipt_amount.Location          = XLayout.R2_2Text_2(txt_receipttype_id.Location);
            txt_receipt_amount.TabIndex          = XTab.Index(txt_cheq_no.TabIndex);
            txt_receipt_amount.Enter            += new EventHandler(Txt_receipt_amount_Enter);


            lbl_cheq_date.Font      = XFont.Font_10B;
            lbl_cheq_date.Name      = "lbl_cheq_date";
            lbl_cheq_date.Text      = "   Cheq date";
            lbl_cheq_date.Anchor    = XAnchor.LT;
            lbl_cheq_date.TextAlign = ContentAlignment.MiddleLeft;
            lbl_cheq_date.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_cheq_date.Size      = XSize.OneLabel;
            lbl_cheq_date.Location  = XLayout.R2_2Label_1(lbl_cheq_no.Location);

            txt_cheq_date.Font              = XFont.TxtFont;
            txt_cheq_date.ForeColor         = XFontColor.TxtFontColor;
            txt_cheq_date.BackColor         = XTheme.TxtBackcolor;
            txt_cheq_date.Name              = "txt_cheq_date";
            txt_cheq_date.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_cheq_date.TextAlign         = HorizontalAlignment.Left;
            txt_cheq_date.Size              = XSize.TwoText;
            txt_cheq_date.Anchor            = XAnchor.LT;
            txt_cheq_date.Location          = XLayout.R2_2Text_1(txt_cheq_no.Location);
            txt_cheq_date.TabIndex          = XTab.Index(txt_receipt_amount.TabIndex);
            txt_cheq_date.Enter            += new EventHandler(Txt_cheq_date_Enter);


            lbl_bank_id.Font      = XFont.Font_10B;
            lbl_bank_id.Name      = "lbl_bank_id";
            lbl_bank_id.Text      = "   Bank";
            lbl_bank_id.Anchor    = XAnchor.LT;
            lbl_bank_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_bank_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_bank_id.Size      = XSize.OneLabel;
            lbl_bank_id.Location  = XLayout.R2_2Label_1(lbl_cheq_date.Location);

            txt_bank_id.Font              = XFont.TxtFont;
            txt_bank_id.ForeColor         = XFontColor.TxtFontColor;
            txt_bank_id.BackColor         = XTheme.TxtBackcolor;
            txt_bank_id.Name              = "txt_bank_id";
            txt_bank_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_bank_id.TextAlign         = HorizontalAlignment.Left;
            txt_bank_id.Size              = XSize.TwoText;
            txt_bank_id.Anchor            = XAnchor.LT;
            txt_bank_id.Location          = XLayout.R2_2Text_1(txt_cheq_date.Location);
            txt_bank_id.TabIndex          = XTab.Index(txt_cheq_date.TabIndex);
            txt_bank_id.Enter            += new EventHandler(Txt_bank_id_Enter);

            editgrid.Location  = new Point(XLayout.H_left, lbl_bank_id.Bottom + 10);
            editgrid.Name      = "editgrid";
            editgrid.Size      = new Size(finner_panel.Width - 50, 220);
            editgrid.TabIndex  = XTab.Index(txt_bank_id.TabIndex);
            editgrid.RowsLimit = 12;
            Point p = new Point(editgrid.Left, editgrid.Bottom - 10);

            lbl_total_amount.Font      = XFont.Font_10B;
            lbl_total_amount.Name      = "lbl_total_amount";
            lbl_total_amount.Text      = "Total amount";
            lbl_total_amount.Anchor    = XAnchor.LT;
            lbl_total_amount.TextAlign = ContentAlignment.MiddleLeft;
            lbl_total_amount.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_total_amount.Size      = XSize.FourLabel;
            lbl_total_amount.Location  = XLayout.R2_4Label_4(p);

            txt_total_amount.Font              = XFont.TxtFont;
            txt_total_amount.ForeColor         = XFontColor.TxtFontColor;
            txt_total_amount.BackColor         = XTheme.TxtBackcolor;
            txt_total_amount.Name              = "txt_total_amount";
            txt_total_amount.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_total_amount.ReadOnly          = true;
            txt_total_amount.Cursor            = Cursors.No;
            txt_total_amount.TextAlign         = HorizontalAlignment.Right;
            txt_total_amount.Size              = XSize.FourText;
            txt_total_amount.Anchor            = XAnchor.LTR;
            txt_total_amount.Location          = XLayout.R2_4Text_4(p);
            txt_total_amount.TabIndex          = XTab.Index(editgrid.TabIndex + 5);
            txt_total_amount.Enter            += new EventHandler(Txt_total_amount_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_total_amount.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(editgrid.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 [FReceipt]

            this.AutoScaleDimensions = new SizeF(6F, 13F);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.Controls.Add(this.split_container);
            this.Name = "fReceipt";
            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]
        }
Example #5
0
 //
 #endregion [Private Declar]
 private void Initialize()
 {
     #region [declare new]
     components        = new Container();
     splitTimer        = new Timer(components);
     split_container   = new SplitContainer();
     fpanel            = new XShadowPanel();
     f_inner_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 Label();
     btn_close         = new Button();
     txt_user_name     = new XTextBox();
     lbl_user_name     = new XLabel();
     txt_user_password = new XTextBox();
     lbl_user_password = new XLabel();
     txt_createon      = new XTextBox();
     lbl_createon      = new XLabel();
     txt_entryby       = new XTextBox();
     lbl_entryby       = new XLabel();
     txt_notes         = new RichTextBox();
     lbl_notes         = new XLabel();
     btn_save          = new OfficeButton();
     btn_cancel        = new OfficeButton();
     btn_not_active    = new OfficeButton();
     btn_active        = new OfficeButton();
     #endregion [declare new]
     //
     #region [container suspend]
     //
     ((ISupportInitialize)(split_container)).BeginInit();
     split_container.Panel1.SuspendLayout();
     split_container.Panel2.SuspendLayout();
     split_container.SuspendLayout();
     fpanel.SuspendLayout();
     f_inner_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.Size             = new Size(Theme.Screen_Width, Theme.Screen_Heigth);
     split_container.SplitterDistance = Theme.Screen_Width;
     split_container.TabIndex         = 0;
     //
     // split_container.Panel1
     //
     split_container.Panel1.Controls.Add(fpanel);
     split_container.Panel1.BackColor = Theme.Fpanel1_Backcolor;
     //
     #region [split_container.Panel2]
     //
     split_container.Panel2.BackColor = Theme.Fpanel2_Backcolor;
     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     = Theme.btnFont;
     btn_list.Location = new Point(Theme.F_btn_list_left, Theme.F_btn_list_top);
     btn_list.Size     = new Size(Theme.F_btn_list_width, Theme.F_btn_list_height);
     btn_list.TabIndex = 1;
     btn_list.Name     = "btn_list";
     btn_list.Text     = "&List";
     btn_list.Themes   = Theme.BlueBtn;
     btn_list.Click   += Btn_list_Click;
     //
     btn_new.Font     = Theme.btnFont;
     btn_new.Location = new Point(Theme.F_btn_list_left, (btn_list.Bottom + Theme.F_btn_gap));
     btn_new.Size     = new Size(Theme.F_btn_list_width, Theme.F_btn_list_height);
     btn_new.TabIndex = btn_list.TabIndex + 1;
     btn_new.Name     = "btn_new";
     btn_new.Text     = "&New";
     btn_new.Themes   = Theme.BlueBtn;
     btn_new.Click   += Btn_new_Click;
     //
     btn_edit.Font     = Theme.btnFont;
     btn_edit.Location = new Point(Theme.F_btn_list_left, (btn_new.Bottom + Theme.F_btn_gap));
     btn_edit.Size     = new Size(Theme.F_btn_list_width, Theme.F_btn_list_height);
     btn_edit.TabIndex = btn_new.TabIndex + 1;
     btn_edit.Name     = "btn_edit";
     btn_edit.Text     = "&Edit";
     btn_edit.Themes   = Theme.BlueBtn;
     btn_edit.Click   += Btn_edit_Click;
     //
     btn_delete.Font     = Theme.btnFont;
     btn_delete.Location = new Point(Theme.F_btn_list_left, (btn_edit.Bottom + Theme.F_btn_gap));
     btn_delete.Size     = new Size(Theme.F_btn_list_width, Theme.F_btn_list_height);
     btn_delete.TabIndex = btn_edit.TabIndex + 1;
     btn_delete.Name     = "btn_delete";
     btn_delete.Text     = "&Delete";
     btn_delete.Themes   = Theme.BlueBtn;
     btn_delete.Click   += Btn_delete_Click;
     //
     btn_print.Font     = Theme.btnFont;
     btn_print.Location = new Point(Theme.F_btn_list_left, (btn_delete.Bottom + Theme.F_btn_gap));
     btn_print.Size     = new Size(Theme.F_btn_list_width, Theme.F_btn_list_height);
     btn_print.TabIndex = btn_delete.TabIndex + 1;
     btn_print.Name     = "btn_print";
     btn_print.Text     = "&Print";
     btn_print.Themes   = Theme.BlueBtn;
     btn_print.Click   += Btn_print_Click;
     //
     btn_splitter.Font     = Theme.btnFont;
     btn_splitter.Location = new Point(Theme.F_btn_list_left - 30, Theme.F_btn_list_top);
     btn_splitter.Size     = new Size(Theme.F_btn_spliter_width, btn_print.Bottom - btn_list.Top);
     btn_splitter.TabIndex = btn_print.TabIndex + 1;
     btn_splitter.Name     = "btn_splitter";
     btn_splitter.Text     = "⁞⁞";
     btn_splitter.Themes   = Theme.WhiteBtn;
     btn_splitter.Click   += new EventHandler(Btn_splitter_Click);
     //
     #endregion [split_container.Panel2]
     //
     #endregion [split_container]
     //
     #region [fpanel]
     //
     fpanel.Name   = "fpanel";
     fpanel.Anchor = ((AnchorStyles)((AnchorStyles.Top)) | ((AnchorStyles.Right)) | ((AnchorStyles.Left)));
     fpanel.Controls.Add(f_inner_panel);
     fpanel.Size      = new Size(Theme.Fpanel_width, Theme.Fpanel_height);
     fpanel.Location  = new Point(Theme.Fpanel_left, Theme.Fpanel_top);
     fpanel.BackColor = Theme.Fpanel_Backcolor;
     fpanel.TabIndex  = 1;
     //
     #endregion [fpanel]
     //
     #region [f_inner_panel]
     //
     f_inner_panel.Anchor     = ((AnchorStyles)((AnchorStyles.Top)) | ((AnchorStyles.Right)) | ((AnchorStyles.Left)));
     f_inner_panel.Cursor     = Cursors.Default;
     f_inner_panel.Name       = "f_inner_panel";
     f_inner_panel.Size       = new Size(Theme.Fpanel_width - 11, Theme.Fpanel_height - 11);
     f_inner_panel.Location   = new Point(6, 0);
     f_inner_panel.BackColor  = Theme.F_inner_panel_Backcolor;
     f_inner_panel.AutoScroll = true;
     f_inner_panel.TabIndex   = 2;
     //
     #region [adding controls]
     //
     f_inner_panel.Controls.Add(btn_close);
     f_inner_panel.Controls.Add(lbl_header);
     f_inner_panel.Controls.Add(txt_notes);
     f_inner_panel.Controls.Add(lbl_notes);
     f_inner_panel.Controls.Add(txt_user_name);
     f_inner_panel.Controls.Add(lbl_user_name);
     f_inner_panel.Controls.Add(txt_user_password);
     f_inner_panel.Controls.Add(lbl_user_password);
     f_inner_panel.Controls.Add(txt_createon);
     f_inner_panel.Controls.Add(lbl_createon);
     f_inner_panel.Controls.Add(txt_entryby);
     f_inner_panel.Controls.Add(lbl_entryby);
     f_inner_panel.Controls.Add(btn_save);
     f_inner_panel.Controls.Add(btn_cancel);
     f_inner_panel.Controls.Add(btn_not_active);
     f_inner_panel.Controls.Add(btn_active);
     //
     #endregion [adding controls]
     //
     #region [Header]
     //
     btn_close.Anchor    = AnchorStyles.Top | AnchorStyles.Right;
     btn_close.BackColor = Color.FromArgb(0, 97, 168);
     btn_close.Cursor    = Cursors.Default;
     btn_close.FlatAppearance.BorderSize         = 0;
     btn_close.FlatAppearance.MouseDownBackColor = Color.OrangeRed;
     btn_close.FlatAppearance.MouseOverBackColor = Color.Crimson;
     btn_close.FlatStyle = FlatStyle.Flat;
     btn_close.Font      = new Font("Arial", 9.75F, FontStyle.Bold, GraphicsUnit.Point, 0);
     btn_close.ForeColor = Color.FromArgb(217, 237, 255);
     btn_close.Location  = new Point(Theme.F_btn_close_left, Theme.F_btn_close_top);
     btn_close.Name      = "btn_close";
     btn_close.Size      = new Size(Theme.btn_close_width, Theme.btn_close_height);
     btn_close.TabIndex  = 30;
     btn_close.Text      = "X";
     btn_close.UseVisualStyleBackColor = false;
     btn_close.Click += new EventHandler(Btn_close_Click);
     //
     lbl_header.Anchor    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     lbl_header.BackColor = Theme.F_header_Backcolor;
     lbl_header.Cursor    = Cursors.Default;
     lbl_header.Font      = Theme.F_header_Font;
     lbl_header.ForeColor = Theme.F_headerText_Fontcolor;
     lbl_header.Location  = new Point(-5, 0);
     lbl_header.Name      = "lbl_header";
     lbl_header.Size      = new Size(Theme.F_header_width, Theme.F_header_height);
     lbl_header.Text      = "User";
     lbl_header.TextAlign = ContentAlignment.MiddleCenter;
     //
     #endregion [Header]
     //
     #region [Properties of control]
     //
     lbl_user_name.Font      = Theme.Font_10B;
     lbl_user_name.ForeColor = Theme.lbl_ForeColor;
     lbl_user_name.Location  = new Point(Theme.lbl_left, Theme.lbl_top);
     lbl_user_name.Size      = new Size(Theme.OneLabelColumn, Theme.OneLabelHeight);
     lbl_user_name.Name      = "lbl_user_name";
     lbl_user_name.Text      = "   User Name";
     lbl_user_name.Anchor    = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left);
     lbl_user_name.TextAlign = ContentAlignment.MiddleLeft;
     lbl_user_name.TabIndex  = Theme.lbl_TabIndex;
     //
     txt_user_name.Font              = Theme.txtFont;
     txt_user_name.ForeColor         = Theme.txtForeColor;
     txt_user_name.BackColor         = Theme.txt_Backcolor;
     txt_user_name.ReadOnlyBackColor = Theme.txt_Readonly_Backcolor;
     txt_user_name.Location          = new Point(Theme.txt_left, Theme.txt_top);
     txt_user_name.Size              = new Size(Theme.OneTextColumn, Theme.txt_Height);
     txt_user_name.Name              = "txt_user_name";
     txt_user_name.Anchor            = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     txt_user_name.TabIndex          = Theme.txt_TabIndex;
     txt_user_name.Enter            += new EventHandler(Txt_user_name_Enter);
     //
     lbl_user_password.Font      = Theme.Font_10B;
     lbl_user_password.ForeColor = Theme.lbl_ForeColor;
     lbl_user_password.Location  = new Point(Theme.lbl_left, lbl_user_name.Top + Theme.RowGap);
     lbl_user_password.Size      = new Size(Theme.OneLabelColumn, Theme.OneLabelHeight);
     lbl_user_password.Name      = "lbl_user_password";
     lbl_user_password.Text      = "   User Password";
     lbl_user_password.Anchor    = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left);
     lbl_user_password.TextAlign = ContentAlignment.MiddleLeft;
     lbl_user_password.TabIndex  = lbl_user_name.TabIndex + 1;
     //
     txt_user_password.Font              = Theme.txtFont;
     txt_user_password.ForeColor         = Theme.txtForeColor;
     txt_user_password.BackColor         = Theme.txt_Backcolor;
     txt_user_password.ReadOnlyBackColor = Theme.txt_Readonly_Backcolor;
     txt_user_password.Location          = new Point(Theme.txt_left, txt_user_name.Top + Theme.RowGap);
     txt_user_password.Size              = new Size(Theme.OneTextColumn, Theme.txt_Height);
     txt_user_password.Name              = "txt_user_password";
     txt_user_password.Anchor            = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     txt_user_password.TabIndex          = txt_user_name.TabIndex + 1;
     txt_user_password.Enter            += new EventHandler(Txt_user_password_Enter);
     //
     lbl_createon.Font      = Theme.Font_10B;
     lbl_createon.ForeColor = Theme.lbl_ForeColor;
     lbl_createon.Location  = new Point(Theme.lbl_left, lbl_user_password.Top + Theme.RowGap);
     lbl_createon.Size      = new Size(Theme.OneLabelColumn, Theme.OneLabelHeight);
     lbl_createon.Name      = "lbl_createon";
     lbl_createon.Text      = "   Createon";
     lbl_createon.Anchor    = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left);
     lbl_createon.TextAlign = ContentAlignment.MiddleLeft;
     lbl_createon.TabIndex  = lbl_user_password.TabIndex + 1;
     //
     txt_createon.Font              = Theme.txtFont;
     txt_createon.ForeColor         = Theme.txtForeColor;
     txt_createon.BackColor         = Theme.txt_Backcolor;
     txt_createon.ReadOnlyBackColor = Theme.txt_Readonly_Backcolor;
     txt_createon.Location          = new Point(Theme.txt_left, txt_user_password.Top + Theme.RowGap);
     txt_createon.Size              = new Size(Theme.OneTextColumn, Theme.txt_Height);
     txt_createon.Name              = "txt_createon";
     txt_createon.Anchor            = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     txt_createon.TabIndex          = txt_user_password.TabIndex + 1;
     txt_createon.Enter            += new EventHandler(Txt_createon_Enter);
     //
     lbl_entryby.Font      = Theme.Font_10B;
     lbl_entryby.ForeColor = Theme.lbl_ForeColor;
     lbl_entryby.Location  = new Point(Theme.lbl_left, lbl_createon.Top + Theme.RowGap);
     lbl_entryby.Size      = new Size(Theme.OneLabelColumn, Theme.OneLabelHeight);
     lbl_entryby.Name      = "lbl_entryby";
     lbl_entryby.Text      = "   Entryby";
     lbl_entryby.Anchor    = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left);
     lbl_entryby.TextAlign = ContentAlignment.MiddleLeft;
     lbl_entryby.TabIndex  = lbl_createon.TabIndex + 1;
     //
     txt_entryby.Font              = Theme.txtFont;
     txt_entryby.ForeColor         = Theme.txtForeColor;
     txt_entryby.BackColor         = Theme.txt_Backcolor;
     txt_entryby.ReadOnlyBackColor = Theme.txt_Readonly_Backcolor;
     txt_entryby.Location          = new Point(Theme.txt_left, txt_createon.Top + Theme.RowGap);
     txt_entryby.Size              = new Size(Theme.OneTextColumn, Theme.txt_Height);
     txt_entryby.Name              = "txt_entryby";
     txt_entryby.Anchor            = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     txt_entryby.TabIndex          = txt_createon.TabIndex + 1;
     txt_entryby.Enter            += new EventHandler(Txt_entryby_Enter);
     //
     lbl_notes.Font      = Theme.Font_10B;
     lbl_notes.ForeColor = Theme.lbl_ForeColor;
     lbl_notes.Location  = new Point(Theme.lbl_left, Theme.Fpanel_height - 75);
     lbl_notes.Size      = new Size(Theme.F_lbl_notes_width, Theme.F_lbl_notes_height);
     lbl_notes.Anchor    = (AnchorStyles)(AnchorStyles.Left | AnchorStyles.Bottom);
     lbl_notes.Name      = "lbl_notes";
     lbl_notes.Text      = "   Notes";
     lbl_notes.TextAlign = ContentAlignment.MiddleLeft;
     lbl_notes.TabIndex  = lbl_entryby.TabIndex + 1;
     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  = new Point(Theme.txt_left, Theme.Fpanel_height - 75);
     txt_notes.Size      = new Size(Theme.F_txt_notes_width, Theme.F_txt_notes_height);
     txt_notes.Name      = "txt_notes";
     txt_notes.Anchor    = (AnchorStyles)(AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right);
     txt_notes.Enter    += new EventHandler(Txt_notes_Enter);
     //
     #endregion [Properties of control]
     //
     #region [Properties of btn]
     //
     btn_save.Anchor   = (AnchorStyles.Bottom | AnchorStyles.Right);
     btn_save.Font     = Theme.btnFont;
     btn_save.Size     = new Size(Theme.F_btn_width, Theme.F_btn_height);
     btn_save.Location = new Point(Theme.F_btn_save_left, Theme.F_btn_save_top);
     btn_save.TabIndex = txt_entryby.TabIndex + 1;
     btn_save.Name     = "btn_save";
     btn_save.Text     = "&SAVE";
     btn_save.Themes   = Theme.BlueBtn;
     btn_save.Click   += new EventHandler(Btn_save_click);
     //
     btn_cancel.Anchor   = (AnchorStyles.Bottom | AnchorStyles.Right);
     btn_cancel.Font     = Theme.btnFont;
     btn_cancel.Size     = new Size(Theme.F_btn_width, Theme.F_btn_height);
     btn_cancel.Location = new Point(Theme.F_btn_cancel_left, Theme.F_btn_cancel_top);
     btn_cancel.TabIndex = btn_save.TabIndex + 1;
     btn_cancel.Name     = "btn_cancel";
     btn_cancel.Text     = "&CANCEL";
     btn_cancel.Themes   = Theme.BlueBtn;
     btn_cancel.Click   += new EventHandler(Btn_cancel_Click);
     //
     btn_not_active.Anchor   = (AnchorStyles.Bottom | AnchorStyles.Right);
     btn_not_active.Font     = Theme.btnFont;
     btn_not_active.Size     = new Size(Theme.F_btn_width, Theme.F_btn_height);
     btn_not_active.Location = new Point(Theme.F_btn_notactive_left, Theme.F_btn_notactive_top);
     btn_not_active.TabIndex = btn_cancel.TabIndex + 1;
     btn_not_active.Name     = "btn_not_active";
     btn_not_active.Text     = "&Not Active";
     btn_not_active.Click   += new EventHandler(Btn_not_active_Click);
     //
     btn_active.Anchor   = (AnchorStyles.Bottom | AnchorStyles.Right);
     btn_active.Font     = Theme.btnFont;
     btn_active.Size     = new Size(Theme.F_btn_width, Theme.F_btn_height);
     btn_active.Location = new Point(Theme.F_btn_active_left, Theme.F_btn_active_top);
     btn_active.TabIndex = btn_not_active.TabIndex + 1;
     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 [f_inner_panel]
     //
     #region [FUser]
     //
     this.AutoScaleDimensions = new SizeF(6F, 13F);
     this.AutoScaleMode       = AutoScaleMode.Font;
     this.Controls.Add(this.split_container);
     this.Name = "fUser";
     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.f_inner_panel.ResumeLayout(false);
     this.f_inner_panel.PerformLayout();
     this.ResumeLayout(false);
     //
     #endregion [Fpost]
 }
Example #6
0
        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]
        }
Example #7
0
        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_party_name      = new XTextBox();
            lbl_party_name      = new XLabel();
            txt_contacttype_id  = new LookupBox();
            lbl_contacttype_id  = new XLabel();
            txt_contact_person  = new XTextBox();
            lbl_contact_person  = new XLabel();
            txt_street1         = new XTextBox();
            lbl_street1         = new XLabel();
            txt_street2         = new XTextBox();
            lbl_street2         = new XLabel();
            txt_city_id         = new LookupBox();
            lbl_city_id         = new XLabel();
            txt_state_id        = new LookupBox();
            lbl_state_id        = new XLabel();
            txt_country_id      = new LookupBox();
            lbl_country_id      = new XLabel();
            txt_pincode_id      = new LookupBox();
            lbl_pincode_id      = new XLabel();
            txt_phone           = new XTextBox();
            lbl_phone           = new XLabel();
            txt_cell            = new XTextBox();
            lbl_cell            = new XLabel();
            txt_email           = new XTextBox();
            lbl_email           = new XLabel();
            txt_website         = new XTextBox();
            lbl_website         = new XLabel();
            txt_gst             = new XTextBox();
            lbl_gst             = new XLabel();
            txt_pan             = new XTextBox();
            lbl_pan             = new XLabel();
            txt_opening_balance = new XTextBox();
            lbl_opening_balance = new XLabel();
            txt_credit_days     = new XTextBox();
            lbl_credit_days     = new XLabel();

            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();
            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(txt_party_name);
            finner_panel.Controls.Add(lbl_party_name);
            finner_panel.Controls.Add(txt_contacttype_id);
            finner_panel.Controls.Add(lbl_contacttype_id);
            finner_panel.Controls.Add(txt_contact_person);
            finner_panel.Controls.Add(lbl_contact_person);
            finner_panel.Controls.Add(txt_street1);
            finner_panel.Controls.Add(lbl_street1);
            finner_panel.Controls.Add(txt_street2);
            finner_panel.Controls.Add(lbl_street2);
            finner_panel.Controls.Add(txt_city_id);
            finner_panel.Controls.Add(lbl_city_id);
            finner_panel.Controls.Add(txt_state_id);
            finner_panel.Controls.Add(lbl_state_id);
            finner_panel.Controls.Add(txt_country_id);
            finner_panel.Controls.Add(lbl_country_id);
            finner_panel.Controls.Add(txt_pincode_id);
            finner_panel.Controls.Add(lbl_pincode_id);
            finner_panel.Controls.Add(txt_phone);
            finner_panel.Controls.Add(lbl_phone);
            finner_panel.Controls.Add(txt_cell);
            finner_panel.Controls.Add(lbl_cell);
            finner_panel.Controls.Add(txt_email);
            finner_panel.Controls.Add(lbl_email);
            finner_panel.Controls.Add(txt_website);
            finner_panel.Controls.Add(lbl_website);
            finner_panel.Controls.Add(txt_gst);
            finner_panel.Controls.Add(lbl_gst);
            finner_panel.Controls.Add(txt_pan);
            finner_panel.Controls.Add(lbl_pan);
            finner_panel.Controls.Add(txt_opening_balance);
            finner_panel.Controls.Add(lbl_opening_balance);
            finner_panel.Controls.Add(txt_credit_days);
            finner_panel.Controls.Add(lbl_credit_days);
            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 = "Party";

            #endregion [Header]

            #region [Properties of control]

            lbl_party_name.Font      = XFont.Font_10B;
            lbl_party_name.Name      = "lbl_party_name";
            lbl_party_name.Text      = "   Party name";
            lbl_party_name.Anchor    = XAnchor.LT;
            lbl_party_name.TextAlign = ContentAlignment.MiddleLeft;
            lbl_party_name.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_party_name.Size      = XSize.OneLabel;
            lbl_party_name.Location  = XLayout.FirstLabel;

            txt_party_name.Font              = XFont.TxtFont;
            txt_party_name.ForeColor         = XFontColor.TxtFontColor;
            txt_party_name.BackColor         = XTheme.TxtBackcolor;
            txt_party_name.Name              = "txt_party_name";
            txt_party_name.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_party_name.Size              = XSize.OneText;
            txt_party_name.Anchor            = XAnchor.LTR;
            txt_party_name.Location          = XLayout.FirstText;
            txt_party_name.TabIndex          = XTab.Txt_TabIndex;
            txt_party_name.Enter            += new EventHandler(Txt_party_name_Enter);


            lbl_contacttype_id.Font      = XFont.Font_10B;
            lbl_contacttype_id.Name      = "lbl_contacttype_id";
            lbl_contacttype_id.Text      = "   Contact type";
            lbl_contacttype_id.Anchor    = XAnchor.LT;
            lbl_contacttype_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_contacttype_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_contacttype_id.Size      = XSize.OneLabel;
            lbl_contacttype_id.Location  = XLayout.R1_Label(lbl_party_name.Location);

            txt_contacttype_id.Font              = XFont.TxtFont;
            txt_contacttype_id.ForeColor         = XFontColor.TxtFontColor;
            txt_contacttype_id.BackColor         = XTheme.TxtBackcolor;
            txt_contacttype_id.Name              = "txt_contacttype_id";
            txt_contacttype_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_contacttype_id.Size              = XSize.OneText;
            txt_contacttype_id.Anchor            = XAnchor.LTR;
            txt_contacttype_id.Location          = XLayout.R1_Text(txt_party_name.Location);
            txt_contacttype_id.TabIndex          = XTab.Index(txt_party_name.TabIndex);
            txt_contacttype_id.Enter            += new EventHandler(Txt_contacttype_id_Enter);


            lbl_contact_person.Font      = XFont.Font_10B;
            lbl_contact_person.Name      = "lbl_contact_person";
            lbl_contact_person.Text      = "   Contact person";
            lbl_contact_person.Anchor    = XAnchor.LT;
            lbl_contact_person.TextAlign = ContentAlignment.MiddleLeft;
            lbl_contact_person.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_contact_person.Size      = XSize.OneLabel;
            lbl_contact_person.Location  = XLayout.R1_Label(lbl_contacttype_id.Location);

            txt_contact_person.Font              = XFont.TxtFont;
            txt_contact_person.ForeColor         = XFontColor.TxtFontColor;
            txt_contact_person.BackColor         = XTheme.TxtBackcolor;
            txt_contact_person.Name              = "txt_contact_person";
            txt_contact_person.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_contact_person.Size              = XSize.OneText;
            txt_contact_person.Anchor            = XAnchor.LTR;
            txt_contact_person.Location          = XLayout.R1_Text(txt_contacttype_id.Location);
            txt_contact_person.TabIndex          = XTab.Index(txt_contacttype_id.TabIndex);
            txt_contact_person.Enter            += new EventHandler(Txt_contact_person_Enter);


            lbl_street1.Font      = XFont.Font_10B;
            lbl_street1.Name      = "lbl_street1";
            lbl_street1.Text      = "   Street1";
            lbl_street1.Anchor    = XAnchor.LT;
            lbl_street1.TextAlign = ContentAlignment.MiddleLeft;
            lbl_street1.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_street1.Size      = XSize.OneLabel;
            lbl_street1.Location  = XLayout.R1_Label(lbl_contact_person.Location);

            txt_street1.Font              = XFont.TxtFont;
            txt_street1.ForeColor         = XFontColor.TxtFontColor;
            txt_street1.BackColor         = XTheme.TxtBackcolor;
            txt_street1.Name              = "txt_street1";
            txt_street1.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_street1.Size              = XSize.OneText;
            txt_street1.Anchor            = XAnchor.LTR;
            txt_street1.Location          = XLayout.R1_Text(txt_contact_person.Location);
            txt_street1.TabIndex          = XTab.Index(txt_contact_person.TabIndex);
            txt_street1.Enter            += new EventHandler(Txt_street1_Enter);


            lbl_street2.Font      = XFont.Font_10B;
            lbl_street2.Name      = "lbl_street2";
            lbl_street2.Text      = "   Street2";
            lbl_street2.Anchor    = XAnchor.LT;
            lbl_street2.TextAlign = ContentAlignment.MiddleLeft;
            lbl_street2.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_street2.Size      = XSize.OneLabel;
            lbl_street2.Location  = XLayout.R1_Label(lbl_street1.Location);

            txt_street2.Font              = XFont.TxtFont;
            txt_street2.ForeColor         = XFontColor.TxtFontColor;
            txt_street2.BackColor         = XTheme.TxtBackcolor;
            txt_street2.Name              = "txt_street2";
            txt_street2.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_street2.Size              = XSize.OneText;
            txt_street2.Anchor            = XAnchor.LTR;
            txt_street2.Location          = XLayout.R1_Text(txt_street1.Location);
            txt_street2.TabIndex          = XTab.Index(txt_street1.TabIndex);
            txt_street2.Enter            += new EventHandler(Txt_street2_Enter);


            lbl_city_id.Font      = XFont.Font_10B;
            lbl_city_id.Name      = "lbl_city_id";
            lbl_city_id.Text      = "   City";
            lbl_city_id.Anchor    = XAnchor.LT;
            lbl_city_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_city_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_city_id.Size      = XSize.OneLabel;
            lbl_city_id.Location  = XLayout.R2_2Label_1(lbl_street2.Location);

            txt_city_id.Font              = XFont.TxtFont;
            txt_city_id.ForeColor         = XFontColor.TxtFontColor;
            txt_city_id.BackColor         = XTheme.TxtBackcolor;
            txt_city_id.Name              = "txt_city_id";
            txt_city_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_city_id.Size              = XSize.TwoText;
            txt_city_id.Anchor            = XAnchor.LT;
            txt_city_id.Location          = XLayout.R2_2Text_1(txt_street2.Location);
            txt_city_id.TabIndex          = XTab.Index(txt_street2.TabIndex);
            txt_city_id.Enter            += new EventHandler(Txt_city_id_Enter);


            lbl_state_id.Font      = XFont.Font_10B;
            lbl_state_id.Name      = "lbl_state_id";
            lbl_state_id.Text      = "   State";
            lbl_state_id.Anchor    = XAnchor.LT;
            lbl_state_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_state_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_state_id.Size      = XSize.TwoLabel;
            lbl_state_id.Location  = XLayout.R1_2Label_2(lbl_city_id.Location);

            txt_state_id.Font              = XFont.TxtFont;
            txt_state_id.ForeColor         = XFontColor.TxtFontColor;
            txt_state_id.BackColor         = XTheme.TxtBackcolor;
            txt_state_id.Name              = "txt_state_id";
            txt_state_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_state_id.Size              = XSize.TwoText;
            txt_state_id.Anchor            = XAnchor.LTR;
            txt_state_id.Location          = XLayout.R1_2Text_2(txt_city_id.Location);
            txt_state_id.TabIndex          = XTab.Index(txt_city_id.TabIndex);
            txt_state_id.Enter            += new EventHandler(Txt_state_id_Enter);


            lbl_country_id.Font      = XFont.Font_10B;
            lbl_country_id.Name      = "lbl_country_id";
            lbl_country_id.Text      = "   Country";
            lbl_country_id.Anchor    = XAnchor.LT;
            lbl_country_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_country_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_country_id.Size      = XSize.OneLabel;
            lbl_country_id.Location  = XLayout.R2_2Label_1(lbl_state_id.Location);

            txt_country_id.Font              = XFont.TxtFont;
            txt_country_id.ForeColor         = XFontColor.TxtFontColor;
            txt_country_id.BackColor         = XTheme.TxtBackcolor;
            txt_country_id.Name              = "txt_country_id";
            txt_country_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_country_id.Size              = XSize.TwoText;
            txt_country_id.Anchor            = XAnchor.LT;
            txt_country_id.Location          = XLayout.R2_2Text_1(txt_state_id.Location);
            txt_country_id.TabIndex          = XTab.Index(txt_state_id.TabIndex);
            txt_country_id.Enter            += new EventHandler(Txt_country_id_Enter);


            lbl_pincode_id.Font      = XFont.Font_10B;
            lbl_pincode_id.Name      = "lbl_pincode_id";
            lbl_pincode_id.Text      = "   Pincode";
            lbl_pincode_id.Anchor    = XAnchor.LT;
            lbl_pincode_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_pincode_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_pincode_id.Size      = XSize.TwoLabel;
            lbl_pincode_id.Location  = XLayout.R1_2Label_2(lbl_country_id.Location);

            txt_pincode_id.Font              = XFont.TxtFont;
            txt_pincode_id.ForeColor         = XFontColor.TxtFontColor;
            txt_pincode_id.BackColor         = XTheme.TxtBackcolor;
            txt_pincode_id.Name              = "txt_pincode_id";
            txt_pincode_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_pincode_id.Size              = XSize.TwoText;
            txt_pincode_id.Anchor            = XAnchor.LTR;
            txt_pincode_id.Location          = XLayout.R1_2Text_2(txt_country_id.Location);
            txt_pincode_id.TabIndex          = XTab.Index(txt_country_id.TabIndex);
            txt_pincode_id.Enter            += new EventHandler(Txt_pincode_id_Enter);


            lbl_phone.Font      = XFont.Font_10B;
            lbl_phone.Name      = "lbl_phone";
            lbl_phone.Text      = "   Phone";
            lbl_phone.Anchor    = XAnchor.LT;
            lbl_phone.TextAlign = ContentAlignment.MiddleLeft;
            lbl_phone.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_phone.Size      = XSize.OneLabel;
            lbl_phone.Location  = XLayout.R2_2Label_1(lbl_pincode_id.Location);

            txt_phone.Font              = XFont.TxtFont;
            txt_phone.ForeColor         = XFontColor.TxtFontColor;
            txt_phone.BackColor         = XTheme.TxtBackcolor;
            txt_phone.Name              = "txt_phone";
            txt_phone.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_phone.Size              = XSize.TwoText;
            txt_phone.Anchor            = XAnchor.LT;
            txt_phone.Location          = XLayout.R2_2Text_1(txt_pincode_id.Location);
            txt_phone.TabIndex          = XTab.Index(txt_pincode_id.TabIndex);
            txt_phone.Enter            += new EventHandler(Txt_phone_Enter);


            lbl_cell.Font      = XFont.Font_10B;
            lbl_cell.Name      = "lbl_cell";
            lbl_cell.Text      = "   Cell";
            lbl_cell.Anchor    = XAnchor.LT;
            lbl_cell.TextAlign = ContentAlignment.MiddleLeft;
            lbl_cell.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_cell.Size      = XSize.TwoLabel;
            lbl_cell.Location  = XLayout.R1_2Label_2(lbl_phone.Location);

            txt_cell.Font              = XFont.TxtFont;
            txt_cell.ForeColor         = XFontColor.TxtFontColor;
            txt_cell.BackColor         = XTheme.TxtBackcolor;
            txt_cell.Name              = "txt_cell";
            txt_cell.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_cell.Size              = XSize.TwoText;
            txt_cell.Anchor            = XAnchor.LTR;
            txt_cell.Location          = XLayout.R1_2Text_2(txt_phone.Location);
            txt_cell.TabIndex          = XTab.Index(txt_phone.TabIndex);
            txt_cell.Enter            += new EventHandler(Txt_cell_Enter);


            lbl_email.Font      = XFont.Font_10B;
            lbl_email.Name      = "lbl_email";
            lbl_email.Text      = "   Email";
            lbl_email.Anchor    = XAnchor.LT;
            lbl_email.TextAlign = ContentAlignment.MiddleLeft;
            lbl_email.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_email.Size      = XSize.OneLabel;
            lbl_email.Location  = XLayout.R1_Label(lbl_cell.Location);

            txt_email.Font              = XFont.TxtFont;
            txt_email.ForeColor         = XFontColor.TxtFontColor;
            txt_email.BackColor         = XTheme.TxtBackcolor;
            txt_email.Name              = "txt_email";
            txt_email.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_email.Size              = XSize.OneText;
            txt_email.Anchor            = XAnchor.LTR;
            txt_email.Location          = XLayout.R1_Text(txt_cell.Location);
            txt_email.TabIndex          = XTab.Index(txt_cell.TabIndex);
            txt_email.Enter            += new EventHandler(Txt_email_Enter);


            lbl_website.Font      = XFont.Font_10B;
            lbl_website.Name      = "lbl_website";
            lbl_website.Text      = "   Website";
            lbl_website.Anchor    = XAnchor.LT;
            lbl_website.TextAlign = ContentAlignment.MiddleLeft;
            lbl_website.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_website.Size      = XSize.OneLabel;
            lbl_website.Location  = XLayout.R1_Label(lbl_email.Location);

            txt_website.Font              = XFont.TxtFont;
            txt_website.ForeColor         = XFontColor.TxtFontColor;
            txt_website.BackColor         = XTheme.TxtBackcolor;
            txt_website.Name              = "txt_website";
            txt_website.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_website.Size              = XSize.OneText;
            txt_website.Anchor            = XAnchor.LTR;
            txt_website.Location          = XLayout.R1_Text(txt_email.Location);
            txt_website.TabIndex          = XTab.Index(txt_email.TabIndex);
            txt_website.Enter            += new EventHandler(Txt_website_Enter);


            lbl_gst.Font      = XFont.Font_10B;
            lbl_gst.Name      = "lbl_gst";
            lbl_gst.Text      = "   Gst";
            lbl_gst.Anchor    = XAnchor.LT;
            lbl_gst.TextAlign = ContentAlignment.MiddleLeft;
            lbl_gst.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_gst.Size      = XSize.OneLabel;
            lbl_gst.Location  = XLayout.R2_2Label_1(lbl_website.Location);

            txt_gst.Font              = XFont.TxtFont;
            txt_gst.ForeColor         = XFontColor.TxtFontColor;
            txt_gst.BackColor         = XTheme.TxtBackcolor;
            txt_gst.Name              = "txt_gst";
            txt_gst.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_gst.Size              = XSize.TwoText;
            txt_gst.Anchor            = XAnchor.LT;
            txt_gst.Location          = XLayout.R2_2Text_1(txt_website.Location);
            txt_gst.TabIndex          = XTab.Index(txt_website.TabIndex);
            txt_gst.Enter            += new EventHandler(Txt_gst_Enter);


            lbl_pan.Font      = XFont.Font_10B;
            lbl_pan.Name      = "lbl_pan";
            lbl_pan.Text      = "   Pan";
            lbl_pan.Anchor    = XAnchor.LT;
            lbl_pan.TextAlign = ContentAlignment.MiddleLeft;
            lbl_pan.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_pan.Size      = XSize.TwoLabel;
            lbl_pan.Location  = XLayout.R1_2Label_2(lbl_gst.Location);

            txt_pan.Font              = XFont.TxtFont;
            txt_pan.ForeColor         = XFontColor.TxtFontColor;
            txt_pan.BackColor         = XTheme.TxtBackcolor;
            txt_pan.Name              = "txt_pan";
            txt_pan.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_pan.Size              = XSize.TwoText;
            txt_pan.Anchor            = XAnchor.LTR;
            txt_pan.Location          = XLayout.R1_2Text_2(txt_gst.Location);
            txt_pan.TabIndex          = XTab.Index(txt_gst.TabIndex);
            txt_pan.Enter            += new EventHandler(Txt_pan_Enter);


            lbl_opening_balance.Font      = XFont.Font_10B;
            lbl_opening_balance.Name      = "lbl_opening_balance";
            lbl_opening_balance.Text      = "   Opening balance";
            lbl_opening_balance.Anchor    = XAnchor.LT;
            lbl_opening_balance.TextAlign = ContentAlignment.MiddleLeft;
            lbl_opening_balance.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_opening_balance.Size      = XSize.OneLabel;
            lbl_opening_balance.Location  = XLayout.R2_2Label_1(lbl_pan.Location);

            txt_opening_balance.Font              = XFont.TxtFont;
            txt_opening_balance.ForeColor         = XFontColor.TxtFontColor;
            txt_opening_balance.BackColor         = XTheme.TxtBackcolor;
            txt_opening_balance.Name              = "txt_opening_balance";
            txt_opening_balance.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_opening_balance.Size              = XSize.TwoText;
            txt_opening_balance.Anchor            = XAnchor.LT;
            txt_opening_balance.Location          = XLayout.R2_2Text_1(txt_pan.Location);
            txt_opening_balance.TabIndex          = XTab.Index(txt_pan.TabIndex);
            txt_opening_balance.Enter            += new EventHandler(Txt_opening_balance_Enter);


            lbl_credit_days.Font      = XFont.Font_10B;
            lbl_credit_days.Name      = "lbl_credit_days";
            lbl_credit_days.Text      = "  QOP";
            lbl_credit_days.Anchor    = XAnchor.LT;
            lbl_credit_days.TextAlign = ContentAlignment.MiddleLeft;
            lbl_credit_days.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_credit_days.Size      = XSize.TwoLabel;
            lbl_credit_days.Location  = XLayout.R1_2Label_2(lbl_opening_balance.Location);

            txt_credit_days.Font              = XFont.TxtFont;
            txt_credit_days.ForeColor         = XFontColor.TxtFontColor;
            txt_credit_days.BackColor         = XTheme.TxtBackcolor;
            txt_credit_days.Name              = "txt_credit_days";
            txt_credit_days.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_credit_days.Size              = XSize.TwoText;
            txt_credit_days.Anchor            = XAnchor.LTR;
            txt_credit_days.Location          = XLayout.R1_2Text_2(txt_opening_balance.Location);
            txt_credit_days.TabIndex          = XTab.Index(txt_opening_balance.TabIndex);
            txt_credit_days.Enter            += new EventHandler(Txt_credit_days_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_credit_days.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 [FParty]

            this.AutoScaleDimensions = new SizeF(6F, 13F);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.Controls.Add(this.split_container);
            this.Name = "fParty";
            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]
        }
Example #8
0
        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();
            DataGridViewCellStyle dataGridViewCellStyle1 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle();
            editgrid   = 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();
            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(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 = "Tables";

            #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_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_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);

            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.Index(editgrid.TabIndex);
            //txt_db_databases.Enter += new EventHandler(Txt_db_);

            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_db_databases.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_db_tables_name.TabIndex);
            txt_namespaces_id.Enter            += new EventHandler(Txt_tables_name_Enter);

            #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, 300);
            editgrid.StandardTab       = true;
            editgrid.TabIntoComma      = false;
            editgrid.Anchor            = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            editgrid.RowsLimit         = 100;
            editgrid.TabIndex          = XTab.Index(txt_tables_alias.TabIndex);
            //
            #endregion [editGridView]

            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]
        }