コード例 #1
0
        //private static DataSet ConvertJsonStringToDataSet(string jsonString)
        //{
        //    try
        //    {
        //        //XmlDocument xd = new XmlDocument();
        //        jsonString = jsonString.Trim().TrimStart('\"').TrimEnd('\"') ;
        //        string xd = JsonConvert.DeserializeXmlNode(jsonString).ToString();
        //        DataSet ds = new DataSet();
        //        //DataSet ds = JsonConvert.DeserializeObject<DataSet>(jsonString);
        //        //ds.ReadXml(new System.Xml.XmlNodeReader(xd));
        //        return ds;



        //        //Newtonsoft.Json.JsonSerializer json = new Newtonsoft.Json.JsonSerializer();

        //        //json.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore;
        //        //json.ObjectCreationHandling = Newtonsoft.Json.ObjectCreationHandling.Replace;
        //        //json.MissingMemberHandling = Newtonsoft.Json.MissingMemberHandling.Ignore;
        //        //json.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;

        //        //StringReader sr = new StringReader(jsonString);
        //        //Newtonsoft.Json.JsonTextReader reader = new JsonTextReader(sr);
        //        //DataSet result = json.Deserialize<DataSet>(reader);
        //        //reader.Close();

        //        //return result;

        //    }
        //    catch (Exception ex)
        //    {
        //        throw new ArgumentException(ex.Message);
        //    }
        //}


        protected void DDLBinding(int id, Semantics Stype)
        {
            String type      = Stype.ToString();
            string strResult = ProxyService.GetSemanticLists(id, type);

            strResult = strResult.Replace("\\", String.Empty);
            strResult = strResult.Trim().TrimStart('\"').TrimEnd('\"');
            var           objSerializer = new JavaScriptSerializer();
            var           obj           = objSerializer.Deserialize <List <SemanticList> >(strResult);
            RibbonGallery rbbnGallary   = null;

            switch (Stype)
            {
            case Semantics.abbreviation: rbbnGallary = glyAbbrevations;
                break;

            case Semantics.cite: rbbnGallary = glyCites;
                break;

            case Semantics.idiom: rbbnGallary = glyIdioms;
                break;

            case Semantics.variable: rbbnGallary = glyVariables;
                break;

            case Semantics.definition: rbbnGallary = glyDefinitions;
                break;

            case Semantics.links: rbbnGallary = glyLinks;
                break;

                //case "new": rbbnGallary = null;
                //    break;
            }
            if (rbbnGallary != null)
            {
                try
                {
                    for (int loop = 0; loop < obj.Count; loop++)
                    {
                        string strNameOfItem = obj[loop].Text;
                        Microsoft.Office.Tools.Ribbon.RibbonDropDownItem menuItem = Factory.CreateRibbonDropDownItem();
                        menuItem.Tag = obj[loop].Value;
                        //menuItem.Id = obj[loop].Value.ToString();
                        menuItem.Label = obj[loop].Text;

                        rbbnGallary.Items.Add(menuItem);
                        rbbnGallary.Items[loop].Label = strNameOfItem;
                    }
                }
                catch
                {
                }
            }
        }
コード例 #2
0
 private void Load_compare_drop_down()
 {
     Microsoft.Office.Tools.Ribbon.RibbonDropDownItem temp_dropdown_item = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "vintage";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "spark_property_type";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "spark_loan_size";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "spark_property_type-- vintage";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "spark_property_type-- spark_loan_size";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "base_year-- base_quarter";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "vintage-- base_year-- base_quarter";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "spark_property_type-- base_year-- base_quarter";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "spark_property_type-- vintage-- base_year-- base_quarter";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "spark_property_type-- spark_loan_size-- base_year-- base_quarter";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "spark_property_type-- spark_loan_size-- base_year-- base_quarter";
     compare_dropdown.Items.Add(temp_dropdown_item);
     temp_dropdown_item       = this.Factory.CreateRibbonDropDownItem();
     temp_dropdown_item.Label = "spark_loan_size-- base_year-- base_quarter";
     compare_dropdown.Items.Add(temp_dropdown_item);
 }
コード例 #3
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要修改
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager   resources = new System.ComponentModel.ComponentResourceManager(typeof(Ribbon1Math));
     Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItemImpl1 = this.Factory.CreateRibbonDropDownItem();
     Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItemImpl2 = this.Factory.CreateRibbonDropDownItem();
     this.Tab1Math                 = this.Factory.CreateRibbonTab();
     this.GroupNet                 = this.Factory.CreateRibbonGroup();
     this.ButtonUrlCheck           = this.Factory.CreateRibbonButton();
     this.splitButtonMediaDuration = this.Factory.CreateRibbonSplitButton();
     this.buttonMoreMediaInfo      = this.Factory.CreateRibbonButton();
     this.GroupDataCleaner         = this.Factory.CreateRibbonGroup();
     this.ButtonAntiMerge          = this.Factory.CreateRibbonButton();
     this.GroupText                = this.Factory.CreateRibbonGroup();
     this.ButtonToEnglish          = this.Factory.CreateRibbonSplitButton();
     this.ButtonTranslate          = this.Factory.CreateRibbonButton();
     this.buttonQR                 = this.Factory.CreateRibbonButton();
     this.GroupOffSet              = this.Factory.CreateRibbonGroup();
     this.ToggleButtonAutoOffSet   = this.Factory.CreateRibbonToggleButton();
     this.BoxOffSet                = this.Factory.CreateRibbonBox();
     this.DropDownOffSet           = this.Factory.CreateRibbonDropDown();
     this.editBoxFactor            = this.Factory.CreateRibbonEditBox();
     this.Tab1Math.SuspendLayout();
     this.GroupNet.SuspendLayout();
     this.GroupDataCleaner.SuspendLayout();
     this.GroupText.SuspendLayout();
     this.GroupOffSet.SuspendLayout();
     this.BoxOffSet.SuspendLayout();
     this.SuspendLayout();
     //
     // Tab1Math
     //
     this.Tab1Math.Groups.Add(this.GroupNet);
     this.Tab1Math.Groups.Add(this.GroupDataCleaner);
     this.Tab1Math.Groups.Add(this.GroupText);
     this.Tab1Math.Groups.Add(this.GroupOffSet);
     this.Tab1Math.Label    = "1Math";
     this.Tab1Math.Name     = "Tab1Math";
     this.Tab1Math.Position = this.Factory.RibbonPosition.AfterOfficeId("TabHome");
     //
     // GroupNet
     //
     this.GroupNet.Items.Add(this.ButtonUrlCheck);
     this.GroupNet.Items.Add(this.splitButtonMediaDuration);
     this.GroupNet.Label = "网络";
     this.GroupNet.Name  = "GroupNet";
     //
     // ButtonUrlCheck
     //
     this.ButtonUrlCheck.Image     = ((System.Drawing.Image)(resources.GetObject("ButtonUrlCheck.Image")));
     this.ButtonUrlCheck.Label     = "链接有效性";
     this.ButtonUrlCheck.Name      = "ButtonUrlCheck";
     this.ButtonUrlCheck.ShowImage = true;
     this.ButtonUrlCheck.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ButtonUrlCheck_ClickAsync);
     //
     // splitButtonMediaDuration
     //
     this.splitButtonMediaDuration.Image = global::_1Math.Properties.Resources.秒表;
     this.splitButtonMediaDuration.Items.Add(this.buttonMoreMediaInfo);
     this.splitButtonMediaDuration.Label  = "媒体时长";
     this.splitButtonMediaDuration.Name   = "splitButtonMediaDuration";
     this.splitButtonMediaDuration.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.SplitButtonMediaDuration_Click);
     //
     // buttonMoreMediaInfo
     //
     this.buttonMoreMediaInfo.Label     = "更多检测";
     this.buttonMoreMediaInfo.Name      = "buttonMoreMediaInfo";
     this.buttonMoreMediaInfo.ScreenTip = "其它检测选项";
     this.buttonMoreMediaInfo.ShowImage = true;
     this.buttonMoreMediaInfo.SuperTip  = "包括是否含有视频、是否含有音频、分辨率等";
     this.buttonMoreMediaInfo.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ButtonMoreMediaInfo_Click);
     //
     // GroupDataCleaner
     //
     this.GroupDataCleaner.Items.Add(this.ButtonAntiMerge);
     this.GroupDataCleaner.Label = "数据清洗";
     this.GroupDataCleaner.Name  = "GroupDataCleaner";
     //
     // ButtonAntiMerge
     //
     this.ButtonAntiMerge.Label     = "取消合并";
     this.ButtonAntiMerge.Name      = "ButtonAntiMerge";
     this.ButtonAntiMerge.ScreenTip = "取消合并单元格";
     this.ButtonAntiMerge.SuperTip  = "批量取消选取中的合并单元格,并相对安全地自动填充。如果你只选中了一个单元格,那么会默认处理整个工作表。";
     this.ButtonAntiMerge.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ButtonAntiMerge_ClickAsync);
     //
     // GroupText
     //
     this.GroupText.Items.Add(this.ButtonToEnglish);
     this.GroupText.Items.Add(this.buttonQR);
     this.GroupText.Label = "文本处理";
     this.GroupText.Name  = "GroupText";
     //
     // ButtonToEnglish
     //
     this.ButtonToEnglish.Items.Add(this.ButtonTranslate);
     this.ButtonToEnglish.Label     = "中译英";
     this.ButtonToEnglish.Name      = "ButtonToEnglish";
     this.ButtonToEnglish.ScreenTip = "批量中译英";
     this.ButtonToEnglish.SuperTip  = "选中具备有效文本的连续单元格,译文将显示在选区右侧";
     this.ButtonToEnglish.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ButtonToEnglish_ClickAsync);
     //
     // ButtonTranslate
     //
     this.ButtonTranslate.Label     = "翻译...";
     this.ButtonTranslate.Name      = "ButtonTranslate";
     this.ButtonTranslate.ScreenTip = "进行有更多详细设置的批量翻译";
     this.ButtonTranslate.ShowImage = true;
     this.ButtonTranslate.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ButtonTranslate_Click);
     //
     // buttonQR
     //
     this.buttonQR.Label     = "生成二维码";
     this.buttonQR.Name      = "buttonQR";
     this.buttonQR.ScreenTip = "批量生成二维码";
     this.buttonQR.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ButtonQRAsync_Click);
     //
     // GroupOffSet
     //
     this.GroupOffSet.Items.Add(this.ToggleButtonAutoOffSet);
     this.GroupOffSet.Items.Add(this.BoxOffSet);
     this.GroupOffSet.Label = "设置";
     this.GroupOffSet.Name  = "GroupOffSet";
     //
     // ToggleButtonAutoOffSet
     //
     this.ToggleButtonAutoOffSet.Label     = "自动输出偏移:右1*n";
     this.ToggleButtonAutoOffSet.Name      = "ToggleButtonAutoOffSet";
     this.ToggleButtonAutoOffSet.ScreenTip = "指示数据输出的位置";
     this.ToggleButtonAutoOffSet.ShowImage = true;
     this.ToggleButtonAutoOffSet.SuperTip  = "在工作表上读取数据并回写Excel时的“结果”相对于“数据源”的偏移量";
     this.ToggleButtonAutoOffSet.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ToggleButtonAutoOffSet_Click);
     //
     // BoxOffSet
     //
     this.BoxOffSet.Items.Add(this.DropDownOffSet);
     this.BoxOffSet.Items.Add(this.editBoxFactor);
     this.BoxOffSet.Name    = "BoxOffSet";
     this.BoxOffSet.Visible = false;
     //
     // DropDownOffSet
     //
     ribbonDropDownItemImpl1.Label = "右";
     ribbonDropDownItemImpl2.Label = "左";
     this.DropDownOffSet.Items.Add(ribbonDropDownItemImpl1);
     this.DropDownOffSet.Items.Add(ribbonDropDownItemImpl2);
     this.DropDownOffSet.Label             = "方向:";
     this.DropDownOffSet.Name              = "DropDownOffSet";
     this.DropDownOffSet.ScreenTip         = "偏移方向(左右)";
     this.DropDownOffSet.SelectionChanged += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.DropDownOffSet_SelectionChanged);
     //
     // editBoxFactor
     //
     this.editBoxFactor.Label        = "倍率:";
     this.editBoxFactor.Name         = "editBoxFactor";
     this.editBoxFactor.ScreenTip    = "偏移倍率值(数字)";
     this.editBoxFactor.SuperTip     = "将以源数据的列数乘以次数值作为偏移量,例如,源数据共三列,你在此处输入“2”,则偏移量为2×3=6.";
     this.editBoxFactor.Text         = "2";
     this.editBoxFactor.TextChanged += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.EditBoxFactor_TextChanged);
     //
     // Ribbon1Math
     //
     this.Name       = "Ribbon1Math";
     this.RibbonType = "Microsoft.Excel.Workbook";
     this.Tabs.Add(this.Tab1Math);
     this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.Ribbon1_Load);
     this.Tab1Math.ResumeLayout(false);
     this.Tab1Math.PerformLayout();
     this.GroupNet.ResumeLayout(false);
     this.GroupNet.PerformLayout();
     this.GroupDataCleaner.ResumeLayout(false);
     this.GroupDataCleaner.PerformLayout();
     this.GroupText.ResumeLayout(false);
     this.GroupText.PerformLayout();
     this.GroupOffSet.ResumeLayout(false);
     this.GroupOffSet.PerformLayout();
     this.BoxOffSet.ResumeLayout(false);
     this.BoxOffSet.PerformLayout();
     this.ResumeLayout(false);
 }
コード例 #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     Microsoft.Office.Tools.Ribbon.RibbonDialogLauncher ribbonDialogLauncherImpl1 = this.Factory.CreateRibbonDialogLauncher();
     Microsoft.Office.Tools.Ribbon.RibbonDropDownItem   ribbonDropDownItemImpl1   = this.Factory.CreateRibbonDropDownItem();
     Microsoft.Office.Tools.Ribbon.RibbonDropDownItem   ribbonDropDownItemImpl2   = this.Factory.CreateRibbonDropDownItem();
     Microsoft.Office.Tools.Ribbon.RibbonDropDownItem   ribbonDropDownItemImpl3   = this.Factory.CreateRibbonDropDownItem();
     Microsoft.Office.Tools.Ribbon.RibbonDropDownItem   ribbonDropDownItemImpl4   = this.Factory.CreateRibbonDropDownItem();
     Microsoft.Office.Tools.Ribbon.RibbonDialogLauncher ribbonDialogLauncherImpl2 = this.Factory.CreateRibbonDialogLauncher();
     System.ComponentModel.ComponentResourceManager     resources = new System.ComponentModel.ComponentResourceManager(typeof(WordPlayer));
     Microsoft.Office.Tools.Ribbon.RibbonDialogLauncher ribbonDialogLauncherImpl3 = this.Factory.CreateRibbonDialogLauncher();
     this.tab_wordPlayer        = this.Factory.CreateRibbonTab();
     this.group_customization   = this.Factory.CreateRibbonGroup();
     this.btn_open              = this.Factory.CreateRibbonButton();
     this.btn_googleDriveAPI    = this.Factory.CreateRibbonButton();
     this.dropDown_speed        = this.Factory.CreateRibbonDropDown();
     this.group_player          = this.Factory.CreateRibbonGroup();
     this.lbl_audio_name        = this.Factory.CreateRibbonLabel();
     this.box_audioData         = this.Factory.CreateRibbonBox();
     this.lbl_time_tracker      = this.Factory.CreateRibbonLabel();
     this.btnGroupVolumeControl = this.Factory.CreateRibbonButtonGroup();
     this.btn_volumeUp          = this.Factory.CreateRibbonButton();
     this.btn_volumeDown        = this.Factory.CreateRibbonButton();
     this.lbl_volume            = this.Factory.CreateRibbonLabel();
     this.btnGroupAudioControl  = this.Factory.CreateRibbonButtonGroup();
     this.com               = this.Factory.CreateRibbonButton();
     this.btn_play          = this.Factory.CreateRibbonButton();
     this.btn_pause         = this.Factory.CreateRibbonButton();
     this.btn_stop          = this.Factory.CreateRibbonButton();
     this.btn_forward       = this.Factory.CreateRibbonButton();
     this.group_preferences = this.Factory.CreateRibbonGroup();
     this.btn_help          = this.Factory.CreateRibbonButton();
     this.btn_settings      = this.Factory.CreateRibbonButton();
     this.btn_about         = this.Factory.CreateRibbonButton();
     this.timer_track       = new System.Windows.Forms.Timer(this.components);
     this.tab_wordPlayer.SuspendLayout();
     this.group_customization.SuspendLayout();
     this.group_player.SuspendLayout();
     this.box_audioData.SuspendLayout();
     this.btnGroupVolumeControl.SuspendLayout();
     this.btnGroupAudioControl.SuspendLayout();
     this.group_preferences.SuspendLayout();
     this.SuspendLayout();
     //
     // tab_wordPlayer
     //
     this.tab_wordPlayer.ControlId.ControlIdType = Microsoft.Office.Tools.Ribbon.RibbonControlIdType.Office;
     this.tab_wordPlayer.Groups.Add(this.group_customization);
     this.tab_wordPlayer.Groups.Add(this.group_player);
     this.tab_wordPlayer.Groups.Add(this.group_preferences);
     this.tab_wordPlayer.Label = "Word Audio Player";
     this.tab_wordPlayer.Name  = "tab_wordPlayer";
     //
     // group_customization
     //
     ribbonDialogLauncherImpl1.Enabled       = false;
     this.group_customization.DialogLauncher = ribbonDialogLauncherImpl1;
     this.group_customization.Items.Add(this.btn_googleDriveAPI);
     this.group_customization.Items.Add(this.dropDown_speed);
     this.group_customization.Label   = "Customization";
     this.group_customization.Name    = "group_customization";
     this.group_customization.Visible = false;
     //
     // btn_open
     //
     this.btn_open.Image     = global::WordPlayer.Properties.Resources.open_btn_image_x18;
     this.btn_open.Label     = "Open";
     this.btn_open.Name      = "btn_open";
     this.btn_open.ShowImage = true;
     this.btn_open.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_open_Click);
     //
     // btn_googleDriveAPI
     //
     this.btn_googleDriveAPI.Image     = global::WordPlayer.Properties.Resources.google_drive_image_x18;
     this.btn_googleDriveAPI.Label     = "Connect to Google Drive";
     this.btn_googleDriveAPI.Name      = "btn_googleDriveAPI";
     this.btn_googleDriveAPI.ScreenTip = "Connect to your Google Drive";
     this.btn_googleDriveAPI.ShowImage = true;
     this.btn_googleDriveAPI.Visible   = false;
     this.btn_googleDriveAPI.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_googleDriveAPI_Click);
     //
     // dropDown_speed
     //
     ribbonDropDownItemImpl1.Label = "1";
     ribbonDropDownItemImpl2.Label = "0.5";
     ribbonDropDownItemImpl3.Label = "1.5";
     ribbonDropDownItemImpl4.Label = "2";
     this.dropDown_speed.Items.Add(ribbonDropDownItemImpl1);
     this.dropDown_speed.Items.Add(ribbonDropDownItemImpl2);
     this.dropDown_speed.Items.Add(ribbonDropDownItemImpl3);
     this.dropDown_speed.Items.Add(ribbonDropDownItemImpl4);
     this.dropDown_speed.Label   = "Speed";
     this.dropDown_speed.Name    = "dropDown_speed";
     this.dropDown_speed.Visible = false;
     //
     // group_player
     //
     this.group_player.DialogLauncher = ribbonDialogLauncherImpl2;
     this.group_player.Items.Add(this.lbl_audio_name);
     this.group_player.Items.Add(this.box_audioData);
     this.group_player.Items.Add(this.btnGroupAudioControl);
     this.group_player.Label = "Audio Player";
     this.group_player.Name  = "group_player";
     this.group_player.DialogLauncherClick += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_settings_Click);
     //
     // lbl_audio_name
     //
     this.lbl_audio_name.Label = "No audio file loaded";
     this.lbl_audio_name.Name  = "lbl_audio_name";
     //
     // box_audioData
     //
     this.box_audioData.Items.Add(this.lbl_time_tracker);
     this.box_audioData.Items.Add(this.btnGroupVolumeControl);
     this.box_audioData.Items.Add(this.lbl_volume);
     this.box_audioData.Name = "box_audioData";
     //
     // lbl_time_tracker
     //
     this.lbl_time_tracker.Label = "00:00 / 00:00";
     this.lbl_time_tracker.Name  = "lbl_time_tracker";
     //
     // btnGroupVolumeControl
     //
     this.btnGroupVolumeControl.Items.Add(this.btn_volumeUp);
     this.btnGroupVolumeControl.Items.Add(this.btn_volumeDown);
     this.btnGroupVolumeControl.Name = "btnGroupVolumeControl";
     //
     // btn_volumeUp
     //
     this.btn_volumeUp.Enabled   = false;
     this.btn_volumeUp.Image     = global::WordPlayer.Properties.Resources.volume_up_btn_image_x18;
     this.btn_volumeUp.Label     = "Up";
     this.btn_volumeUp.Name      = "btn_volumeUp";
     this.btn_volumeUp.ShowImage = true;
     this.btn_volumeUp.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_volumeUp_Click);
     //
     // btn_volumeDown
     //
     this.btn_volumeDown.Enabled   = false;
     this.btn_volumeDown.Image     = global::WordPlayer.Properties.Resources.volume_down_btn_image_x18;
     this.btn_volumeDown.Label     = "Down";
     this.btn_volumeDown.Name      = "btn_volumeDown";
     this.btn_volumeDown.ShowImage = true;
     this.btn_volumeDown.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_volumeDown_Click);
     //
     // lbl_volume
     //
     this.lbl_volume.Label = "Volume : 100%";
     this.lbl_volume.Name  = "lbl_volume";
     //
     // btnGroupAudioControl
     //
     this.btnGroupAudioControl.Items.Add(this.btn_open);
     this.btnGroupAudioControl.Items.Add(this.com);
     this.btnGroupAudioControl.Items.Add(this.btn_play);
     this.btnGroupAudioControl.Items.Add(this.btn_pause);
     this.btnGroupAudioControl.Items.Add(this.btn_stop);
     this.btnGroupAudioControl.Items.Add(this.btn_forward);
     this.btnGroupAudioControl.Name = "btnGroupAudioControl";
     //
     // com
     //
     this.com.Image     = global::WordPlayer.Properties.Resources.rewind_btn_image_x18;
     this.com.Label     = "Rewind";
     this.com.Name      = "com";
     this.com.ShowImage = true;
     this.com.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_rewind_Click);
     //
     // btn_play
     //
     this.btn_play.Image     = global::WordPlayer.Properties.Resources.play_btn_image_x18;
     this.btn_play.Label     = "Play";
     this.btn_play.Name      = "btn_play";
     this.btn_play.ShowImage = true;
     this.btn_play.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_play_Click);
     //
     // btn_pause
     //
     this.btn_pause.Image     = global::WordPlayer.Properties.Resources.pause_btn_image_x18;
     this.btn_pause.Label     = "Pause";
     this.btn_pause.Name      = "btn_pause";
     this.btn_pause.ShowImage = true;
     this.btn_pause.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_pause_Click);
     //
     // btn_stop
     //
     this.btn_stop.Image     = global::WordPlayer.Properties.Resources.stop_btn_image_x18;
     this.btn_stop.Label     = "Stop";
     this.btn_stop.Name      = "btn_stop";
     this.btn_stop.ShowImage = true;
     this.btn_stop.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_stop_Click);
     //
     // btn_forward
     //
     this.btn_forward.Image     = ((System.Drawing.Image)(resources.GetObject("btn_forward.Image")));
     this.btn_forward.Label     = "Forward";
     this.btn_forward.Name      = "btn_forward";
     this.btn_forward.ShowImage = true;
     this.btn_forward.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_forward_Click);
     //
     // group_preferences
     //
     ribbonDialogLauncherImpl3.Enabled     = false;
     this.group_preferences.DialogLauncher = ribbonDialogLauncherImpl3;
     this.group_preferences.Items.Add(this.btn_help);
     this.group_preferences.Items.Add(this.btn_settings);
     this.group_preferences.Items.Add(this.btn_about);
     this.group_preferences.Label = "   Preferences   ";
     this.group_preferences.Name  = "group_preferences";
     //
     // btn_help
     //
     this.btn_help.Label  = "Help";
     this.btn_help.Name   = "btn_help";
     this.btn_help.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_help_Click);
     //
     // btn_settings
     //
     this.btn_settings.Label  = "Settings";
     this.btn_settings.Name   = "btn_settings";
     this.btn_settings.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_settings_Click);
     //
     // btn_about
     //
     this.btn_about.Label  = "About";
     this.btn_about.Name   = "btn_about";
     this.btn_about.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_about_Click);
     //
     // timer_track
     //
     this.timer_track.Interval = 200;
     this.timer_track.Tick    += new System.EventHandler(this.timer_track_Tick);
     //
     // WordPlayer
     //
     this.Name       = "WordPlayer";
     this.RibbonType = "Microsoft.Word.Document";
     this.Tabs.Add(this.tab_wordPlayer);
     this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.WordPlayer_Load);
     this.tab_wordPlayer.ResumeLayout(false);
     this.tab_wordPlayer.PerformLayout();
     this.group_customization.ResumeLayout(false);
     this.group_customization.PerformLayout();
     this.group_player.ResumeLayout(false);
     this.group_player.PerformLayout();
     this.box_audioData.ResumeLayout(false);
     this.box_audioData.PerformLayout();
     this.btnGroupVolumeControl.ResumeLayout(false);
     this.btnGroupVolumeControl.PerformLayout();
     this.btnGroupAudioControl.ResumeLayout(false);
     this.btnGroupAudioControl.PerformLayout();
     this.group_preferences.ResumeLayout(false);
     this.group_preferences.PerformLayout();
     this.ResumeLayout(false);
 }
コード例 #5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItemImpl1 = this.Factory.CreateRibbonDropDownItem();
     Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItemImpl2 = this.Factory.CreateRibbonDropDownItem();
     this.tab1      = this.Factory.CreateRibbonTab();
     this.group1    = this.Factory.CreateRibbonGroup();
     this.box1      = this.Factory.CreateRibbonBox();
     this.editBox2  = this.Factory.CreateRibbonEditBox();
     this.editBox1  = this.Factory.CreateRibbonEditBox();
     this.checkBox1 = this.Factory.CreateRibbonCheckBox();
     this.button1   = this.Factory.CreateRibbonButton();
     this.group3    = this.Factory.CreateRibbonGroup();
     this.dropDown1 = this.Factory.CreateRibbonDropDown();
     this.button3   = this.Factory.CreateRibbonButton();
     this.menu2     = this.Factory.CreateRibbonMenu();
     this.group2    = this.Factory.CreateRibbonGroup();
     this.box2      = this.Factory.CreateRibbonBox();
     this.editBox7  = this.Factory.CreateRibbonEditBox();
     this.button2   = this.Factory.CreateRibbonButton();
     this.group4    = this.Factory.CreateRibbonGroup();
     this.box4      = this.Factory.CreateRibbonBox();
     this.comboBox1 = this.Factory.CreateRibbonComboBox();
     this.editBox5  = this.Factory.CreateRibbonEditBox();
     this.editBox4  = this.Factory.CreateRibbonEditBox();
     this.box5      = this.Factory.CreateRibbonBox();
     this.comboBox2 = this.Factory.CreateRibbonComboBox();
     this.editBox3  = this.Factory.CreateRibbonEditBox();
     this.editBox6  = this.Factory.CreateRibbonEditBox();
     this.menu1     = this.Factory.CreateRibbonMenu();
     this.tab1.SuspendLayout();
     this.group1.SuspendLayout();
     this.box1.SuspendLayout();
     this.group3.SuspendLayout();
     this.group2.SuspendLayout();
     this.box2.SuspendLayout();
     this.group4.SuspendLayout();
     this.box4.SuspendLayout();
     this.box5.SuspendLayout();
     this.SuspendLayout();
     //
     // tab1
     //
     this.tab1.Groups.Add(this.group1);
     this.tab1.Groups.Add(this.group3);
     this.tab1.Groups.Add(this.group2);
     this.tab1.Groups.Add(this.group4);
     this.tab1.Label = "R-TEx";
     this.tab1.Name  = "tab1";
     //
     // group1
     //
     this.group1.Items.Add(this.box1);
     this.group1.Label = "Login";
     this.group1.Name  = "group1";
     //
     // box1
     //
     this.box1.BoxStyle = Microsoft.Office.Tools.Ribbon.RibbonBoxStyle.Vertical;
     this.box1.Items.Add(this.editBox2);
     this.box1.Items.Add(this.editBox1);
     this.box1.Items.Add(this.checkBox1);
     this.box1.Items.Add(this.button1);
     this.box1.Name = "box1";
     //
     // editBox2
     //
     this.editBox2.Label = "E-mail";
     this.editBox2.Name  = "editBox2";
     this.editBox2.Text  = null;
     //
     // editBox1
     //
     this.editBox1.Label = "Password";
     this.editBox1.Name  = "editBox1";
     this.editBox1.Text  = null;
     //
     // checkBox1
     //
     this.checkBox1.Label = "Remember Info";
     this.checkBox1.Name  = "checkBox1";
     //
     // button1
     //
     this.button1.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
     this.button1.Image       = global::R_TEx1316.Properties.Resources.checkmark_symbol_png_background_12;
     this.button1.Label       = "Login";
     this.button1.Name        = "button1";
     this.button1.ShowImage   = true;
     this.button1.Click      += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.button1_Click);
     //
     // group3
     //
     this.group3.Items.Add(this.dropDown1);
     this.group3.Items.Add(this.button3);
     this.group3.Items.Add(this.menu2);
     this.group3.Label = "Cloud Workbooks";
     this.group3.Name  = "group3";
     //
     // dropDown1
     //
     this.dropDown1.Label = "Workbooks:";
     this.dropDown1.Name  = "dropDown1";
     //
     // button3
     //
     this.button3.Label = "Open Workbook";
     this.button3.Name  = "button3";
     //
     // menu2
     //
     this.menu2.Label = "Users With Access";
     this.menu2.Name  = "menu2";
     //
     // group2
     //
     this.group2.Items.Add(this.box2);
     this.group2.Label = "New Cloud Workbook";
     this.group2.Name  = "group2";
     //
     // box2
     //
     this.box2.BoxStyle = Microsoft.Office.Tools.Ribbon.RibbonBoxStyle.Vertical;
     this.box2.Items.Add(this.menu1);
     this.box2.Items.Add(this.editBox7);
     this.box2.Items.Add(this.button2);
     this.box2.Name = "box2";
     //
     // editBox7
     //
     this.editBox7.Label = "Workbook Name";
     this.editBox7.Name  = "editBox7";
     this.editBox7.Text  = null;
     //
     // button2
     //
     this.button2.Label = "Create Cloud Workbook";
     this.button2.Name  = "button2";
     //
     // group4
     //
     this.group4.Items.Add(this.box4);
     this.group4.Items.Add(this.box5);
     this.group4.Label = "User Management";
     this.group4.Name  = "group4";
     //
     // box4
     //
     this.box4.BoxStyle = Microsoft.Office.Tools.Ribbon.RibbonBoxStyle.Vertical;
     this.box4.Items.Add(this.comboBox1);
     this.box4.Items.Add(this.editBox5);
     this.box4.Items.Add(this.editBox4);
     this.box4.Name = "box4";
     //
     // comboBox1
     //
     ribbonDropDownItemImpl1.Label = "Add User";
     ribbonDropDownItemImpl2.Label = "Edit User";
     this.comboBox1.Items.Add(ribbonDropDownItemImpl1);
     this.comboBox1.Items.Add(ribbonDropDownItemImpl2);
     this.comboBox1.Label = "Action";
     this.comboBox1.Name  = "comboBox1";
     this.comboBox1.Text  = null;
     //
     // editBox5
     //
     this.editBox5.Label        = "First Name";
     this.editBox5.Name         = "editBox5";
     this.editBox5.Text         = null;
     this.editBox5.TextChanged += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.editBox5_TextChanged);
     //
     // editBox4
     //
     this.editBox4.Label = "Last Name";
     this.editBox4.Name  = "editBox4";
     this.editBox4.Text  = null;
     //
     // box5
     //
     this.box5.BoxStyle = Microsoft.Office.Tools.Ribbon.RibbonBoxStyle.Vertical;
     this.box5.Items.Add(this.comboBox2);
     this.box5.Items.Add(this.editBox3);
     this.box5.Items.Add(this.editBox6);
     this.box5.Name = "box5";
     //
     // comboBox2
     //
     this.comboBox2.Label = "User To Edit";
     this.comboBox2.Name  = "comboBox2";
     this.comboBox2.Text  = null;
     //
     // editBox3
     //
     this.editBox3.Label = "  E-mail";
     this.editBox3.Name  = "editBox3";
     this.editBox3.Text  = null;
     //
     // editBox6
     //
     this.editBox6.Label = "  Password";
     this.editBox6.Name  = "editBox6";
     this.editBox6.Text  = null;
     //
     // menu1
     //
     this.menu1.Label = "Users With Access";
     this.menu1.Name  = "menu1";
     //
     // Ribbon
     //
     this.Name       = "Ribbon";
     this.RibbonType = "Microsoft.Excel.Workbook";
     this.Tabs.Add(this.tab1);
     this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.Ribbon_Load);
     this.tab1.ResumeLayout(false);
     this.tab1.PerformLayout();
     this.group1.ResumeLayout(false);
     this.group1.PerformLayout();
     this.box1.ResumeLayout(false);
     this.box1.PerformLayout();
     this.group3.ResumeLayout(false);
     this.group3.PerformLayout();
     this.group2.ResumeLayout(false);
     this.group2.PerformLayout();
     this.box2.ResumeLayout(false);
     this.box2.PerformLayout();
     this.group4.ResumeLayout(false);
     this.group4.PerformLayout();
     this.box4.ResumeLayout(false);
     this.box4.PerformLayout();
     this.box5.ResumeLayout(false);
     this.box5.PerformLayout();
     this.ResumeLayout(false);
 }