Beispiel #1
0
        void InitializeComponent()
        {
            var resources = new ComponentResourceManager(typeof(SourceAndFindingsForm));

            mStatusBar            = new StatusBar();
            mStatusBarPanel       = new StatusBarPanel();
            mListPanel            = new Panel();
            mCloseButton          = new Button();
            mExportButton         = new Button();
            mLoadButton           = new Button();
            mFindingListView      = new AssemblyFindingListView();
            mSplitter             = new Splitter();
            mSaveExportFileDialog = new SaveFileDialog();
            mSourceControl        = new SourceCodeControl();
            ((ISupportInitialize)(mStatusBarPanel)).BeginInit();
            mListPanel.SuspendLayout();
            SuspendLayout();
            //
            // mStatusBar
            //
            mStatusBar.Location = new System.Drawing.Point(0, 383);
            mStatusBar.Name     = "mStatusBar";
            mStatusBar.Panels.AddRange(new StatusBarPanel[] {
                mStatusBarPanel
            });
            mStatusBar.ShowPanels = true;
            mStatusBar.Size       = new System.Drawing.Size(568, 22);
            mStatusBar.TabIndex   = 3;
            //
            // mStatusBarPanel
            //
            mStatusBarPanel.AutoSize = StatusBarPanelAutoSize.Spring;
            mStatusBarPanel.Name     = "mStatusBarPanel";
            mStatusBarPanel.Width    = 551;
            //
            // mListPanel
            //
            mListPanel.Controls.Add(mCloseButton);
            mListPanel.Controls.Add(mExportButton);
            mListPanel.Controls.Add(mLoadButton);
            mListPanel.Controls.Add(mFindingListView);
            mListPanel.Dock     = DockStyle.Bottom;
            mListPanel.Location = new System.Drawing.Point(0, 303);
            mListPanel.Name     = "mListPanel";
            mListPanel.Size     = new System.Drawing.Size(568, 80);
            mListPanel.TabIndex = 2;
            //
            // mCloseButton
            //
            mCloseButton.Anchor       = (AnchorStyles.Bottom | AnchorStyles.Right);
            mCloseButton.DialogResult = DialogResult.Cancel;
            mCloseButton.Location     = new System.Drawing.Point(498, 53);
            mCloseButton.Name         = "mCloseButton";
            mCloseButton.Size         = new System.Drawing.Size(62, 23);
            mCloseButton.TabIndex     = 3;
            mCloseButton.Text         = "&Close";
            //
            // mExportButton
            //
            mExportButton.Anchor   = (AnchorStyles.Bottom | AnchorStyles.Right);
            mExportButton.Location = new System.Drawing.Point(498, 28);
            mExportButton.Name     = "mExportButton";
            mExportButton.Size     = new System.Drawing.Size(62, 23);
            mExportButton.TabIndex = 2;
            mExportButton.Text     = "&Export...";
            mExportButton.Click   += MExportButton_Click;
            //
            // mLoadButton
            //
            mLoadButton.Anchor       = (AnchorStyles.Bottom | AnchorStyles.Right);
            mLoadButton.DialogResult = DialogResult.OK;
            mLoadButton.Location     = new System.Drawing.Point(498, 3);
            mLoadButton.Name         = "mLoadButton";
            mLoadButton.Size         = new System.Drawing.Size(62, 23);
            mLoadButton.TabIndex     = 1;
            mLoadButton.Text         = "&Load";
            //
            // mFindingListView
            //
            mFindingListView.Anchor = (((AnchorStyles.Top | AnchorStyles.Bottom)
                                        | AnchorStyles.Left)
                                       | AnchorStyles.Right);
            mFindingListView.Location          = new System.Drawing.Point(0, 0);
            mFindingListView.Name              = "mFindingListView";
            mFindingListView.SeverityImageList = null;
            mFindingListView.Size              = new System.Drawing.Size(492, 80);
            mFindingListView.TabIndex          = 0;
            //
            // mSplitter
            //
            mSplitter.BorderStyle = BorderStyle.Fixed3D;
            mSplitter.Dock        = DockStyle.Bottom;
            mSplitter.Location    = new System.Drawing.Point(0, 295);
            mSplitter.MinExtra    = 100;
            mSplitter.MinSize     = 80;
            mSplitter.Name        = "mSplitter";
            mSplitter.Size        = new System.Drawing.Size(568, 8);
            mSplitter.TabIndex    = 1;
            mSplitter.TabStop     = false;
            //
            // mSaveExportFileDialog
            //
            mSaveExportFileDialog.DefaultExt = "mixdeck";
            mSaveExportFileDialog.Filter     = "MixEmul card deck files|*.mixdeck|All files|*.*";
            mSaveExportFileDialog.Title      = "Specify export file name";
            //
            // mSourceControl
            //
            mSourceControl.Dock          = DockStyle.Fill;
            mSourceControl.Location      = new System.Drawing.Point(0, 0);
            mSourceControl.MarkedFinding = null;
            mSourceControl.Name          = "mSourceControl";
            mSourceControl.Size          = new System.Drawing.Size(568, 295);
            mSourceControl.TabIndex      = 0;
            //
            // SourceAndFindingsForm
            //
            //this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            ClientSize = new System.Drawing.Size(568, 405);
            Controls.Add(mSourceControl);
            Controls.Add(mSplitter);
            Controls.Add(mListPanel);
            Controls.Add(mStatusBar);
            Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            MinimizeBox   = false;
            MinimumSize   = new System.Drawing.Size(400, 224);
            Name          = "SourceAndFindingsForm";
            ShowInTaskbar = false;
            Text          = "Assembly result";
            ((ISupportInitialize)(mStatusBarPanel)).EndInit();
            mListPanel.ResumeLayout(false);
            ResumeLayout(false);
        }
Beispiel #2
0
 void MFindingListView_SelectionChanged(AssemblyFindingListView sender, AssemblyFindingListView.SelectionChangedEventArgs args)
 {
     mSourceControl.MarkedFinding = args.SelectedFinding;
 }