void ButnNext_Click(object sender, RoutedEventArgs e)
 {
     //跟点击确定一样的效果:批量生成好多通道
     if (!CheckInput())
     {
         return;
     }
     if (!CheckCount())
     {
         return;
     }
     AddChannels();
     //opean next page
     for (int i = 0; i < WizardHelper.ListRecords.Count; i++)
     {
         if (RecordConfigObj.ObjectID == WizardHelper.ListRecords[i].ObjectID)
         {
             if (i == (WizardHelper.ListRecords.Count - 1))
             {
                 if (WizardHelper.ListScreens != null && WizardHelper.ListScreens.Count != 0)
                 {
                     //下一页。进入界面9:录屏参数配置
                     UCWizardScreenConfig ucwizard = new UCWizardScreenConfig();
                     ucwizard.MainPage       = MainPage;
                     ucwizard.ChanAddPrepage = this;
                     ucwizard.CurrentApp     = CurrentApp;
                     //ucwizard.RecordConfigObj = this.RecordConfigObj;
                     //ucwizard.ParentItem = this.ParentObjectItem;
                     ucwizard.WizardHelper = this.WizardHelper;
                     //ucwizard.ListConfigObjects = ListConfigObjects;
                     MainPage.PopupPanel.Title   = "Config Wizard";
                     MainPage.PopupPanel.Content = ucwizard;
                     MainPage.PopupPanel.IsOpen  = true;
                 }
                 else
                 {
                     UCWizardCTIConfig ucwizard = new UCWizardCTIConfig();
                     ucwizard.MainPage     = MainPage;
                     ucwizard.CurrentApp   = CurrentApp;
                     ucwizard.PreRecordAdd = this;
                     //ucwizard.ScreenConfigObj = this.ScreenSeviceConfigObj;
                     //ucwizard.ParentItem = this.ParentObjectItem;
                     ucwizard.IsAsk        = true;
                     ucwizard.WizardHelper = this.WizardHelper;
                     //ucwizard.ListConfigObjects = ListConfigObjects;
                     MainPage.PopupPanel.Title   = "Config Wizard";
                     MainPage.PopupPanel.Content = ucwizard;
                     MainPage.PopupPanel.IsOpen  = true;
                 }
                 break;
             }
             else
             {
                 //循环
                 WizardHelper.UCRecordConfig.LoopLoad();
                 MainPage.PopupPanel.Content = WizardHelper.UCRecordConfig;
             }
         }
     }
 }
Пример #2
0
 void ButnNext_Click(object sender, RoutedEventArgs e)
 {
     //打开界面9:录屏服务配置参数
     if (this.IPTextBox.GetIP() != string.Empty && this.IPTextBox.GetIP() != "0.0.0.0")
     {
         SaveRecordChannel();
     }
     if (RecordChannelNumber < ListRecordChannels.Count)
     {
         //加载下一项的内容
         RecordChannelNumber++;
         InitControlObject();
     }
     else
     {
         for (int i = 0; i < WizardHelper.ListRecords.Count; i++)
         {
             if (RecordConfigObj.ObjectID == WizardHelper.ListRecords[i].ObjectID)
             {
                 if (i == (WizardHelper.ListRecords.Count - 1))
                 {
                     if (WizardHelper.ListScreens != null && WizardHelper.ListScreens.Count != 0)
                     {
                         //下一页。进入界面9:录屏参数配置
                         UCWizardScreenConfig ucwizard = new UCWizardScreenConfig();
                         ucwizard.MainPage    = MainPage;
                         ucwizard.ChanPrepage = this;
                         ucwizard.CurrentApp  = CurrentApp;
                         //ucwizard.RecordConfigObj = this.RecordConfigObj;
                         //ucwizard.ParentItem = this.ParentObjectItem;
                         ucwizard.WizardHelper = this.WizardHelper;
                         //ucwizard.ListConfigObjects = ListConfigObjects;
                         MainPage.PopupPanel.Title   = "Config Wizard";
                         MainPage.PopupPanel.Content = ucwizard;
                         MainPage.PopupPanel.IsOpen  = true;
                     }
                     else
                     {
                         UCWizardCTIConfig ucwizard = new UCWizardCTIConfig();
                         ucwizard.MainPage      = MainPage;
                         ucwizard.CurrentApp    = CurrentApp;
                         ucwizard.PreRecordChan = this;
                         //ucwizard.ScreenConfigObj = this.ScreenSeviceConfigObj;
                         //ucwizard.ParentItem = this.ParentObjectItem;
                         ucwizard.IsAsk        = true;
                         ucwizard.WizardHelper = this.WizardHelper;
                         //ucwizard.ListConfigObjects = ListConfigObjects;
                         MainPage.PopupPanel.Title   = "Config Wizard";
                         MainPage.PopupPanel.Content = ucwizard;
                         MainPage.PopupPanel.IsOpen  = true;
                     }
                     break;
                 }
                 else
                 {
                     //循环
                     WizardHelper.UCRecordConfig.LoopLoad();
                     MainPage.PopupPanel.Content = WizardHelper.UCRecordConfig;
                 }
             }
         }
     }
 }