コード例 #1
0
        /// <summary>
        /// hàm thực hiện thông tin thay đổi
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void sttResult_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            try
            {
                grdResultByTestType.DataSource = null;
                if (_testAllResult.Rows.Count > 0)
                {
                    if (sttResult.SelectedTab == null)
                    {
                        sttResult.SelectedTabIndex = 0;
                    }
                    else
                    {
                        string rowfillter = "1=1";
                        string testTypeId = sttResult.SelectedTab.Tag.ToString();
                        if (Utility.Int32Dbnull(testTypeId) > 0)
                        {
                            rowfillter = TResultDetail.Columns.TestTypeId + "=" + testTypeId;
                        }

                        _testAllResult.DefaultView.RowFilter = rowfillter;
                        _testAllResult.AcceptChanges();
                        grdResultByTestType.DataSource = _testAllResult;
                    }
                }
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.Message);
            }
        }
コード例 #2
0
        /// <summary>
        /// 事件
        /// </summary>
        /// <param name="sender">控件对象</param>
        /// <param name="e">事件参数</param>
        private void stiDetail_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            switch (stiDetail.SelectedPanel.Name)
            {
            case "stpTotal":
                // stiDetail.SelectedPanel = stpTotal;
                stpTotal.Enabled = true;
                stpClass.Enabled = false;
                stpItem.Enabled  = false;

                cbbPromType.SelectedValue = 1;
                break;

            case "stpClass":
                stpTotal.Enabled          = false;
                stpClass.Enabled          = true;
                stpItem.Enabled           = false;
                cbbPromType.SelectedValue = 2;
                //  stiDetail.SelectedPanel = stpClass;
                break;

            case "stpItem":
                stpTotal.Enabled          = false;
                stpClass.Enabled          = false;
                stpItem.Enabled           = true;
                cbbPromType.SelectedValue = 3;
                // stiDetail.SelectedPanel = stpItem;
                break;
            }
        }
コード例 #3
0
ファイル: FormMain.cs プロジェクト: hpbaotho/benhvien
        private void superTabControlMain_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {            
            switch ((sender as SuperTabControl).SelectedTabIndex)
            { 
                case 1:
                    int totalAttributeFormDatabase = (int)discreteIntervalTableAdapter.TotalAttributes();
                    int totalAttributeFromSetting = TableMetaData.AllAttributes.Length;

                    if (totalAttributeFormDatabase + 1== totalAttributeFromSetting)
                    {
                        refreshTabCreateModel();
                        if (this.codification == null)
                        {
                            this.codification = new Codification(getDataTableForCodification());
                        }
                    }
                    else {
                        (sender as SuperTabControl).SelectedTabIndex = 0;
                        MessageBox.Show("Chưa có dữ liệu rời rạc!", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        return;
                    }
                    break;
                default:
                    break;
            }
        }
コード例 #4
0
 private void OnTabControlPageChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     if (!AppManager.Instance.Settings.UserSettings.UseDockedStyle)
     {
         UncollapseWindow();
     }
 }
コード例 #5
0
 private void tbctrl_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     if (SCMS.Validators.Contains(this))
     {
         SCMS.Validators[this].Highlighter.UpdateHighlights();
     }
 }
コード例 #6
0
ファイル: objattoo.cs プロジェクト: skyclub66/HMI
 private void tabControl1_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     if (this.tabControl1.SelectedTab != null && this.tabControl1.SelectedTab.Tag != null)
     {
         this.attload(this.tabControl1.SelectedTab.Tag.ToString().Getint());
     }
 }
コード例 #7
0
        private void tabControlHeader_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            //因为StatA,StatB界面完全一样,只是装载的A,B队不同,所以用1个Panel,
            //如果在tabControlHead中点综合, 那么显示tabControlMain中Main卡片
            //如果在tabControlHead中点TeamA或TeamB,那么显示tabControlMain中Team卡片
            //同时进行卡片内 数据的初始化,通过判断tabControlHead中哪个卡片被选中,就可知道当前选中了啥

            //主要是防止程序启动时自动触发
            if (Common.g_nMatchID <= 0)
            {
                return;
            }

            if (e.NewValue == _tabHeaderStatDouble)
            {
                _tabWork.SelectedTab = _tabWorkStatDouble;
            }
            else
            if (e.NewValue == _tabHeaderTeamA || e.NewValue == _tabHeaderTeamB)
            {
                _tabWork.SelectedTab = _tabWorkStatTeam;
            }
            else
            if (e.NewValue == _tabHeaderScore)
            {
                _tabWork.SelectedTab = _tabWorkScore;
            }

            RefreshAll();
        }
コード例 #8
0
        private void superTabControlMain_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            switch ((sender as SuperTabControl).SelectedTabIndex)
            {
            case 1:
                int totalAttributeFormDatabase = (int)discreteIntervalTableAdapter.TotalAttributes();
                int totalAttributeFromSetting  = TableMetaData.AllAttributes.Length;

                if (totalAttributeFormDatabase + 1 == totalAttributeFromSetting)
                {
                    refreshTabCreateModel();
                    if (this.codification == null)
                    {
                        this.codification = new Codification(getDataTableForCodification());
                    }
                }
                else
                {
                    (sender as SuperTabControl).SelectedTabIndex = 0;
                    MessageBox.Show("Chưa có dữ liệu rời rạc!", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                break;

            default:
                break;
            }
        }
コード例 #9
0
 private void superTabControl1_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     try
     {
         if (tcl_dakham.IsSelected == true)
         {
             dgv_danhsachck.SelectionChanged -= dgv_danhsachck_SelectionChanged;
             grp_khambenh.Enabled             = false;
             if (luu == 1)
             {
                 int n = dgv_danhsachdk.Rows.Count;
                 dgv_danhsachdk.SelectionChanged -= dgv_danhsachdk_SelectionChanged;
                 for (int i = 1; i < n; i++)
                 {
                     dgv_danhsachdk.Rows.RemoveAt(0);
                 }
                 dgv_danhsachdk.ReadOnly = true;
                 LoadDataDaKham();
                 dgv_danhsachdk.SelectionChanged += dgv_danhsachdk_SelectionChanged;
                 luu = 0;
             }
             XoaTrangO();
             int k = dgv_thuoc.Rows.Count;
             for (int i = 1; i < k; i++)
             {
                 dgv_thuoc.Rows.RemoveAt(0);
             }
             dgv_danhsachdk.CurrentCell.Selected = false;
             txt_diachi.Text                  = "";
             txt_mabn.Text                    = "";
             txt_tenck.Text                   = "";
             txt_trieuchung.Text              = "";
             txt_dudoan.Text                  = "";
             dt_ngaysinh.Text                 = "";
             dgv_danhsachdk.SelectionChanged += dgv_danhsachdk_SelectionChanged;
         }
         if (tcl_chokham.IsSelected == true)
         {
             dgv_danhsachdk.SelectionChanged -= dgv_danhsachdk_SelectionChanged;
             grp_khambenh.Enabled             = true;
             XoaTrangO();
             int k = dgv_thuoc.Rows.Count;
             for (int i = 1; i < k; i++)
             {
                 dgv_thuoc.Rows.RemoveAt(0);
             }
             txt_diachi.Text     = "";
             txt_mabn.Text       = "";
             txt_tenck.Text      = "";
             txt_dudoan.Text     = "";
             txt_trieuchung.Text = "";
             dt_ngaysinh.Text    = "";
             dgv_danhsachck.CurrentCell.Selected = false;
             dgv_danhsachck.SelectionChanged    += dgv_danhsachck_SelectionChanged;
         }
     }
     catch (Exception ex)
     { }
 }
コード例 #10
0
 private void SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     SetupTabSize();
     if (superTabControl1.SelectedTabIndex == 0)
     {
         propertyGrid1.Focus();
     }
 }
コード例 #11
0
ファイル: TransactionForm.cs プロジェクト: AlixMeng/LiMS-2
        private void lendingTab_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            SuperTabItem tabItem = (SuperTabItem)e.NewValue;

            if (tabItem.AttachedControl != null)
            {
                tabItem.AttachedControl.Controls[0].Select();
            }
        }
コード例 #12
0
ファイル: Form1.cs プロジェクト: yiki2/FreeSql.Tools
        private void superTabControl1_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            buttonItem19.Enabled = false;
            var superTab = superTabControl1.SelectedTab;

            if (pairs.TryGetValue(superTab.Text, out UCEditor uCEditor))
            {
                buttonItem19.Command = uCEditor.command_save;
                buttonItem19.Enabled = true;
            }
        }
コード例 #13
0
 /// <summary>
 /// 设置工具条的可见性
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void superTabControl1_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     this.bar2.Enabled = false;
     this.bar3.Enabled = false;
     if (superTabControl1.SelectedTab == superTabItem2)
     {
         this.bar2.Enabled = true;
     }
     if (superTabControl1.SelectedTab == superTabItem1)
     {
         this.bar3.Enabled = true;
     }
 }
コード例 #14
0
        private void tbctrl_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            if (!_shown)
            {
                return;
            }
            Validator _validator = SCMS.Validators[this];

            if (_validator != null)
            {
                _validator.Highlighter.UpdateHighlights();
            }
        }
コード例 #15
0
 /// <summary>
 /// 选中选项卡改变事件
 /// </summary>
 /// <param name="sender">控件对象</param>
 /// <param name="e">事件参数</param>
 private void tabMoudel_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     if (tabMoudel.SelectedTab.Name == "stWestDrug")
     {
         advWestDrugLevel.SelectedNode = ndPeople;
         GetPresTemplate(2, 0, treWestDrug);
     }
     else
     {
         advMidDrug.SelectedNode = node7;
         GetPresTemplate(2, 1, treMidDrug);
     }
 }
コード例 #16
0
 private void tab_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     if (TabMain != null && TabMain.Tabs.Count > 1 && TabMain.SelectedTab != null)
     {
         if (TabMain.SelectedTab.AttachedControl.Controls.Count > 0)
         {
             if (TabMain.SelectedTab.AttachedControl.Controls[0] is ListBaseForm)
             {
                 ((ListBaseForm)TabMain.SelectedTab.AttachedControl.Controls[0]).Activate();
             }
             else
             {
                 //((ListBaseForm)TabMain.SelectedTab.AttachedControl.Controls[0]).Activate();
             }
         }
     }
 }
コード例 #17
0
        //选型卡窗口之间执行的操作
        private void superTabCtrMain_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            if (superTabCtrMain.SelectedTab.Text.Equals("物理模型设定"))
            {
                GlobleVariable.modelForm.action();
            }

            if (superTabCtrMain.SelectedTab.Text.Equals("材料性质设定"))
            {
                GlobleVariable.materialsForm.action();//执行委托
            }

            if (superTabCtrMain.SelectedTab.Text.Equals("边界条件设定"))
            {
                if (GlobleVariable.materialsForm.ModelsStatus == ModelsSelect.OFFOFF)
                {
                    GlobleVariable.currentModelsStatus = ModelsSelect.OFFOFF;
                }
                else if (GlobleVariable.materialsForm.ModelsStatus == ModelsSelect.OFFON)
                {
                    GlobleVariable.currentModelsStatus = ModelsSelect.OFFON;
                }
                else if (GlobleVariable.materialsForm.ModelsStatus == ModelsSelect.ONONOFFON)
                {
                    GlobleVariable.currentModelsStatus = ModelsSelect.ONONOFFON;
                }
                else
                {
                    MessageBox.Show("当前模型组合尚未开发,敬请等待...", "抱歉提示");
                    this.superTabCtrMain.SelectedTabIndex -= 1;
                    return;
                }
                GlobleVariable.boundaryConditionsForm.action();
            }

            if (superTabCtrMain.SelectedTab.Text.Equals("求解设定"))
            {
                GlobleVariable.runCalculationForm.action();
            }

            if (superTabCtrMain.SelectedTab.Text.Equals("计算结果导出"))
            {
                GlobleVariable.calculationDataExportForm.action();
            }
        }
コード例 #18
0
        /// <summary>
        /// select tab changed event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tbsQueryList_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            var table = XML_Tool.xml.Report.Single(n => n.Name == e.NewValue.Text);

            //comboBox1.DataSource = table.column.Where(n => n.enableSearch).Select(n => n.Name).ToList();
            tabName    = table.DataName;
            showColumn = string.Empty;
            show_superGridControl.PrimaryGrid.ColumnAutoSizeMode = (ColumnAutoSizeMode)(int)table.ColumnAutoSizeMode;
            show_superGridControl.PrimaryGrid.Columns.Clear();
            show_superGridControl.PrimaryGrid.DetachDataSource(false);
            show_superGridControl.PrimaryGrid.ColumnHeader.GroupHeaders.Clear();

            foreach (var co in table.column.OrderBy(n => n.DisplayIndex))
            {
                GridColumn Column;
                Column = new GridColumn()
                {
                    HeaderText       = co.Name,
                    FillWeight       = co.width,
                    Width            = co.width,
                    DataPropertyName = co.dataName,
                    FilterAutoScan   = co.autoFilter,
                    DisplayIndex     = co.DisplayIndex,
                    ReadOnly         = true
                };
                if (co.isDatetime)
                {
                    Column.EditorType = typeof(GridDateTimeInputEditControl);
                    var createTimeColumnRenderControl = (GridDateTimeInputEditControl)Column.RenderControl;
                    //设置 format 为自定义
                    createTimeColumnRenderControl.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
                    //设置自定义格式
                    createTimeColumnRenderControl.CustomFormat = "yyyy-MM-dd HH:mm:ss fff";
                }
                show_superGridControl.PrimaryGrid.Columns.Add(Column);
                showColumn += "[" + co.dataName + "]" + ",";
            }
            SetColumnGroupHeader(show_superGridControl.PrimaryGrid.ColumnHeader.GroupHeaders, table.merging);
            showColumn  = showColumn.TrimEnd(',');
            dgv         = show_superGridControl.PrimaryGrid;
            tablistName = e.NewValue.Text;
            select_button_Click(null, null);
        }
コード例 #19
0
        /// <summary>
        /// 标签选中项更改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void superTabControlMain_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            switch (superTabControlMain.SelectedTabIndex)
            {
            case 0:
                updateSuperTabControlPanel(OpenUCType.OpenGISVideo);
                break;

            case 1:
                updateSuperTabControlPanel(OpenUCType.OpenAudioVideoProcess);
                break;

            case 2:
                updateSuperTabControlPanel(OpenUCType.OpenMeshManagement);
                break;

            case 3:
                updateSuperTabControlPanel(OpenUCType.OpenUserSettings);
                break;
            }
        }
コード例 #20
0
 /// <summary>
 /// 点击项目基本信息时
 /// Created:2017.3.28(xuxb)
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void MainSuperTabControl_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     //if (e.NewValue.Name == "ProjectInfo")
     //{
     //    SuperTabItem item = (SuperTabItem)MainSuperTabControl.Tabs["ProjectInfo"];
     //    if (item.AttachedControl.Controls.Count == 0)
     //    {
     //        Office2007RibbonForm form = new ProjectInfo();
     //        //不存在,创建TabItem,并激活
     //        form.FormBorderStyle = FormBorderStyle.None;
     //        form.Dock = DockStyle.Fill;
     //        //开始 liuxuexian
     //        //为了适应不同屏幕的分辨率,设置最小出现滚动条的值
     //        form.AutoScroll = true;
     //        form.AutoScrollMinSize = new Size(1100, 800);
     //        //结束
     //        form.TopLevel = false;
     //        form.Visible = true;
     //        item.AttachedControl.Controls.Add(form);//显示项目的基本信息
     //    }
     //}
 }
コード例 #21
0
 private void superTabProductos_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     ((SuperTabControl)sender).SelectedTab.Focus();
 }
コード例 #22
0
ファイル: MainForm.cs プロジェクト: 305120262/DataGateWay
 private void superTabControl2_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
 }
コード例 #23
0
ファイル: ReportAnalysisForm.cs プロジェクト: 18036800983/AMS
 /// <summary>
 /// 饼状,柱形,折线图切换事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Buttom_superTabStrip_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     refreshChart();
 }
コード例 #24
0
 private void tabs_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     PuplateTabData(e.NewValue as SuperTabItem);
 }
コード例 #25
0
        // G e n e r a l   G u i

        private void SuperTabControl1_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            UpdateView();
        }
コード例 #26
0
        private void superTabControl1_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            Periodo selectedPeriodo = cmbPeriodos.SelectedItem as Periodo;

            loadGroup(selectedPeriodo);
        }
コード例 #27
0
ファイル: ChartOptionForm.cs プロジェクト: BoonieBear/BSS
        private void OptionTab_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
        {
            if(OptionTab.SelectedTab.Text=="参数设置")
            {
                BSSParameter para = null;
                if (NetEngine.bConnect)
                {
                    if (CurrentType)
                    {
                        RangeInput.MaxValue = 100;
                        para = Highpara;
                        if (MainForm.mf.netcore.SendCommand(Command.GetHighParaCMD()) == false)
                        {
                            MainForm.mf.CmdWindow.DisplayAns("无法得到最新高频参数:" + MainForm.mf.netcore.Status);
                            //this.Text = "设置高频声纳参数" + "-无法得到最新高频参数";
                        }
                        else
                        {
                            MainForm.mf.CmdWindow.DisplayAns("收到最新高频参数:");
                            //this.Text = "设置高频声纳参数";
                        }

                    }
                    else
                    {
                        RangeInput.MaxValue = 200;
                        para = Lowpara;
                        if (MainForm.mf.netcore.SendCommand(Command.GetLowParaCMD()) == false)
                        {
                            MainForm.mf.CmdWindow.DisplayAns("无法得到最新低频参数:" + MainForm.mf.netcore.Status);
                            //this.Text = "设置低频声纳参数" + "-无法得到最新低频参数";
                        }
                        else
                        {
                            MainForm.mf.CmdWindow.DisplayAns("收到最新低频参数:");
                            //this.Text = "设置低频声纳参数";
                        }
                    }

                }
                else
                {
                    para = new BSSParameter(false);
                }
                //显示参数
                RangeInput.Value = para.Range;
                TvbG.Value = para.TvgG;
                PortBandWidth.Value = (int)para.PortBandWidth;
                StartBandWidth.Value = (int)para.StarBoardBandWidth;
                PortCentralFq.Value = (int)para.PortCentralFq;
                StartCentralFq.Value = (int)para.StarBoardCentralFq;
                WorkPeriod.Value = (int)para.Period;
                PulseLength.Value = (int)para.Ls;
                TVGDelay.Value = (int)para.TVGDelay;
                TvgAlpha.Value = (int)para.TvgAlpha;
                TvgBeta.Value = (int)para.TvgBeta;
                //发射控制
                BitArray ba = new BitArray(BitConverter.GetBytes(para.Flag));
                PortSendEnable.Checked = ba[0];
                StartSendEnable.Checked = ba[1];
                int selectindex = ((ba[2] == true) ? 1 : 0) + ((ba[3] == true) ? 1 : 0) * 2 + ((ba[4] == true) ? 1 : 0) * 4 - 1;
                PortBox.SelectedIndex = selectindex;
                selectindex = ((ba[5] == true) ? 1 : 0) + ((ba[6] == true) ? 1 : 0) * 2 + ((ba[7] == true) ? 1 : 0) * 4 - 1;
                StartBox.SelectedIndex = selectindex;
                //命令标识
                TrigerMode.Checked = para.ComArray[3];
                PortFqBox.SelectedIndex = para.ComArray[6] == false ? 0 : 1;
                StartFqBox.SelectedIndex = para.ComArray[7] == false ? 0 : 1;
                EnablePortBSS.Checked = para.ComArray[21];
                EnableStartBSS.Checked = para.ComArray[22];
                CalcTVG.Checked = para.ComArray[24];
                SingleWorkValid.Checked = para.ComArray[25];
            }
        }
コード例 #28
0
ファイル: FormMain.cs プロジェクト: w01f/VolgaTeam.Dashboard
		private void OnTabControlSelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
		{
			UncollapseWindow();
		}
コード例 #29
0
 private void OptionTab_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     if (OptionTab.SelectedTab.Text == "参数设置")
     {
         BSSParameter para = null;
         if (NetEngine.bConnect)
         {
             if (CurrentType)
             {
                 RangeInput.MaxValue = 100;
                 para = Highpara;
                 if (MainForm.mf.netcore.SendCommand(Command.GetHighParaCMD()) == false)
                 {
                     MainForm.mf.CmdWindow.DisplayAns("无法得到最新高频参数:" + MainForm.mf.netcore.Status);
                     //this.Text = "设置高频声纳参数" + "-无法得到最新高频参数";
                 }
                 else
                 {
                     MainForm.mf.CmdWindow.DisplayAns("收到最新高频参数:");
                     //this.Text = "设置高频声纳参数";
                 }
             }
             else
             {
                 RangeInput.MaxValue = 200;
                 para = Lowpara;
                 if (MainForm.mf.netcore.SendCommand(Command.GetLowParaCMD()) == false)
                 {
                     MainForm.mf.CmdWindow.DisplayAns("无法得到最新低频参数:" + MainForm.mf.netcore.Status);
                     //this.Text = "设置低频声纳参数" + "-无法得到最新低频参数";
                 }
                 else
                 {
                     MainForm.mf.CmdWindow.DisplayAns("收到最新低频参数:");
                     //this.Text = "设置低频声纳参数";
                 }
             }
         }
         else
         {
             para = new BSSParameter(false);
         }
         //显示参数
         RangeInput.Value     = para.Range;
         TvbG.Value           = para.TvgG;
         PortBandWidth.Value  = (int)para.PortBandWidth;
         StartBandWidth.Value = (int)para.StarBoardBandWidth;
         PortCentralFq.Value  = (int)para.PortCentralFq;
         StartCentralFq.Value = (int)para.StarBoardCentralFq;
         WorkPeriod.Value     = (int)para.Period;
         PulseLength.Value    = (int)para.Ls;
         TVGDelay.Value       = (int)para.TVGDelay;
         TvgAlpha.Value       = (int)para.TvgAlpha;
         TvgBeta.Value        = (int)para.TvgBeta;
         //发射控制
         BitArray ba = new BitArray(BitConverter.GetBytes(para.Flag));
         PortSendEnable.Checked  = ba[0];
         StartSendEnable.Checked = ba[1];
         int selectindex = ((ba[2] == true) ? 1 : 0) + ((ba[3] == true) ? 1 : 0) * 2 + ((ba[4] == true) ? 1 : 0) * 4 - 1;
         PortBox.SelectedIndex  = selectindex;
         selectindex            = ((ba[5] == true) ? 1 : 0) + ((ba[6] == true) ? 1 : 0) * 2 + ((ba[7] == true) ? 1 : 0) * 4 - 1;
         StartBox.SelectedIndex = selectindex;
         //命令标识
         TrigerMode.Checked       = para.ComArray[3];
         PortFqBox.SelectedIndex  = para.ComArray[6] == false ? 0 : 1;
         StartFqBox.SelectedIndex = para.ComArray[7] == false ? 0 : 1;
         EnablePortBSS.Checked    = para.ComArray[21];
         EnableStartBSS.Checked   = para.ComArray[22];
         CalcTVG.Checked          = para.ComArray[24];
         SingleWorkValid.Checked  = para.ComArray[25];
     }
 }
コード例 #30
0
 private void tabs_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     PuplateTabData(e.NewValue as SuperTabItem);
 }
コード例 #31
0
 private void SuperTabControl1SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     UpdateHighlighterRegion();
 }
コード例 #32
0
 /// <summary>
 /// Handles SelectedTabChanged events
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void TabStripSelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     if (SelectedTabChanged != null)
         SelectedTabChanged(this, e);
 }
コード例 #33
0
 private void SuperTabControlX_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e)
 {
     this.Text = e.NewValue.Text;
 }