Пример #1
0
        public MainFrm()
        {
            InitializeComponent();

            Language.InitFormLanguage(this, StringResources.GetValue("lang"));

            ToolStripButtonGroup modeBtnGroup = new ToolStripButtonGroup(toolStrip);

            modeBtnGroup.AddButton(toolStripButton_BrowseMode);
            modeBtnGroup.AddButton(toolStripButton_EditLabelMode);
            modeBtnGroup.AddButton(toolStripButton_InputMode);
            modeBtnGroup.AddButton(toolStripButton_CheckMode);

            wsp_control_apt = new WorkspaceControlAdpter(
                modeBtnGroup,
                toolStripComboBox_File,
                TranslateTextBox,
                TextBox_GroupBox,
                new ListViewAdpter(listView, wsp.GroupDefine),
                picView,
                contextMenuStripQuickText,
                toolStrip,
                wsp);

            zoomAdaptor = new ZoomAdaptor(picView,
                                          toolStripButton_ZoomPlus,
                                          toolStripButton_ZoomMinus,
                                          toolStripComboBox_Zoom);

            langComboxApt = new LangComboxAdaptor(langToolStripComboBox, this);

            SetLayout();
        }
Пример #2
0
        public MainFrm()
        {
            InitializeComponent();

            Language.InitFormLanguage(this, StringResources.GetValue("lang"));

            ToolStripButtonGroup modeBtnGroup = new ToolStripButtonGroup(toolStrip);
            modeBtnGroup.AddButton(toolStripButton_BrowseMode);
            modeBtnGroup.AddButton(toolStripButton_EditLabelMode);
            modeBtnGroup.AddButton(toolStripButton_InputMode);
            modeBtnGroup.AddButton(toolStripButton_CheckMode);

            wsp_control_apt = new WorkspaceControlAdpter(
                modeBtnGroup,
                toolStripComboBox_File,
                TranslateTextBox,
                TextBox_GroupBox,
                new ListViewAdpter(listView, wsp.GroupDefine),
                picView,
                contextMenuStripQuickText,
                toolStrip,
                wsp);

            zoomAdaptor = new ZoomAdaptor(picView,
                toolStripButton_ZoomPlus,
                toolStripButton_ZoomMinus,
                toolStripComboBox_Zoom);

            langComboxApt = new LangComboxAdaptor(langToolStripComboBox, this);

            SetLayout();
        }