Пример #1
0
        private void InitCtrl()
        {
            #region List Header
            ColumnHeader h0 = new ColumnHeader();
            h0.Text  = "";
            h0.Width = 30;
            this.lvMsg.Columns.Add(h0);

            ColumnHeader h1 = new ColumnHeader();
            h1.Text  = LangPack.GetStoNum();
            h1.Width = 75;
            this.lvMsg.Columns.Add(h1);

            ColumnHeader h2 = new ColumnHeader();
            h2.Text  = LangPack.GetName();
            h2.Width = 170;
            this.lvMsg.Columns.Add(h2);

            ColumnHeader h3 = new ColumnHeader();
            h3.Text  = LangPack.GetTime();
            h3.Width = 100;
            this.lvMsg.Columns.Add(h3);

            ColumnHeader h5 = new ColumnHeader();
            h5.Text  = LangPack.GetStoContext();
            h5.Width = 150;
            this.lvMsg.Columns.Add(h5);
            #endregion

            AddListViewItem();
        }
Пример #2
0
        private void InitLang()
        {
            label2.Text   = LangPack.GetName();
            label1.Text   = LangPack.GetNumber();
            label3.Text   = LangPack.GetText();
            label4.Text   = LangPack.GetTime();
            label6.Text   = LangPack.GetSec();
            btnSve.Text   = LangPack.GetSave();
            btnClose.Text = LangPack.GetClose();

            if (LangPack.IsEng)
            {
                label8.Text = "Stored Message Edit";
            }
            else
            {
                label8.Text = "Хадглагдсан мессеж засварлах";
            }
        }
Пример #3
0
        private void InitLang()
        {
            btnClose.Text  = LangPack.GetClose();
            btnSave.Text   = LangPack.GetSave();
            btnView.Text   = LangPack.GetPreview();
            cutAddBtn.Text = LangPack.GetCutAdd();
            label1.Text    = LangPack.GetKind();
            label5.Text    = LangPack.GetName();
            label2.Text    = LangPack.GetText();
            label7.Text    = LangPack.GetCut();

            if (LangPack.IsEng)
            {
                label6.Text = "CG Edit";
                label4.Text = "Byte count : ";
            }
            else
            {
                label6.Text = "Текст засварлах";
                label4.Text = "Бит : ";
            }
        }
Пример #4
0
        private void InitCtrl()
        {
            if (this.bOrder)
            {
                btnClear.Visible    = true;
                btnClose.Text       = LangPack.Getselect();
                btnView.Visible     = false;
                btnDel.Visible      = false;
                btnAdd.Visible      = false;
                btnEdit.Visible     = false;
                btnKindAdd.Visible  = false;
                btnKindDel.Visible  = false;
                btnKindEdit.Visible = false;

                tabKind.Size = new Size(tabKind.Size.Width, tabKind.Size.Height + 44);
                tabText.Size = new Size(tabText.Size.Width, tabText.Size.Height + 44);

                lvText.CheckBoxes = false;
            }
            else
            {
                btnClear.Visible  = false;
                btnClose.Text     = LangPack.GetClose();
                btnClose.Location = new Point(674, 463);
            }

            #region Init List Header
            ColumnHeader h0 = new ColumnHeader();
            h0.Text  = "";
            h0.Width = 50;
            this.lvText.Columns.Add(h0);

            //ColumnHeader h3 = new ColumnHeader();
            //h3.Text = "";
            //h3.Width = 30;
            //this.lvText.Columns.Add(h3);

            ColumnHeader h1 = new ColumnHeader();
            h1.Text  = LangPack.GetName();
            h1.Width = 100;
            this.lvText.Columns.Add(h1);

            ColumnHeader h2 = new ColumnHeader();
            h2.Text  = LangPack.GetText();
            h2.Width = 300;
            this.lvText.Columns.Add(h2);

            //ColumnHeader h3 = new ColumnHeader();
            //h3.Text = "Blink";
            //h3.Width = 50;
            //this.lvText.Columns.Add(h3);
            #endregion

            AddTreeData();

            if (this.bOrder && this.brdInfo != null)
            {
                foreach (TreeNode node in tvKind.Nodes)
                {
                    if (node.Text == this.brdInfo.kind)
                    {
                        tvKind.SelectedNode = node;
                        break;
                    }
                }
            }
        }