示例#1
0
 void BtnNext_Click(object sender, RoutedEventArgs e)
 {
     if (PageParent != null)
     {
         PageParent.ToNext();
     }
 }
示例#2
0
 void BtnClose_Click(object sender, RoutedEventArgs e)
 {
     if (PageParent != null)
     {
         PageParent.ToClose();
     }
 }
示例#3
0
 void BtnPrevious_Click(object sender, RoutedEventArgs e)
 {
     if (PageParent != null)
     {
         PageParent.ToPrevious();
     }
 }
    public void ChangePage(PageParent reqPage)
    {
        pageParent.PageEnd();

        pageParent = reqPage;

        pageParent.PageStart();
    }
    public override void SceneStart()
    {
        base.SceneStart();
        canvas.SetEnable(true);
        Cards.AllCardShow();

        pageIntro = GetComponentInChildren <PageIntro>();

        pageParent = pageIntro;
        pageParent.PageStart();
    }
示例#6
0
 void BtnNext_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (CbAgree.IsChecked != true)
         {
             ShowException(App.GetLanguageInfo("N003", string.Format("Please agree the license agreement before update!")));
             return;
         }
         if (PageParent != null)
         {
             PageParent.ToNext();
         }
     }
     catch (Exception ex)
     {
         ShowException(ex.Message);
     }
 }
示例#7
0
        void BtnNext_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (InstallState == null)
                {
                    ShowException(string.Format("InstallState is null"));
                    return;
                }
                InstallState.IsBackupUMP = CbBackupUMP.IsChecked == true;
                string str = TxtBackupPath.Text;
                if (string.IsNullOrEmpty(str) &&
                    InstallState.IsBackupUMP)
                {
                    ShowException(App.GetLanguageInfo("N004", string.Format("Backup path is empty")));
                    return;
                }
                InstallState.UMPBackupPath    = str;
                InstallState.IsCompressBackup = CbCompressBackup.IsChecked == true;
                InstallState.IsUpdateLang     = CbUpdateLang.IsChecked == true;
                int intMode = RadioLangAppend.IsChecked == true
                    ? 1
                    : RadioLangModify.IsChecked == true
                        ? 2
                        : RadioLangReset.IsChecked == true ? 3 : RadioLangBackup.IsChecked == true ? 4 : 0;
                InstallState.LangUpdateMode   = intMode;
                InstallState.IsSaveUpdateData = CbSaveUpdateData.IsChecked == true;

                if (ListProducts != null)
                {
                    string strIxName = TxtIxPatchRename.Text;
                    string strIPName = TxtIPPatchRename.Text;
                    if (string.IsNullOrEmpty(strIxName))
                    {
                        strIxName = "NtiDrv.dll";
                    }
                    if (string.IsNullOrEmpty(strIPName))
                    {
                        strIPName = "NtiDrv.dll";
                    }

                    var hybridRecording =
                        ListProducts.Count(
                            p =>
                            p.ProductGuid == UpdateConsts.PACKAGE_GUID_IXPATCH ||
                            p.ProductGuid == UpdateConsts.PACKAGE_GUID_SOFTRECORD);
                    if (hybridRecording >= 2 &&
                        strIxName.Equals(strIPName))
                    {
                        //同时安装了IP 和 三汇 录音时,重命名不能同名
                        ShowException(App.GetLanguageInfo("N011", string.Format("Ntidrv.dll can not be equal name!")));
                        return;
                    }
                    InstallState.IxPatchName = strIxName;
                    InstallState.IPPatchName = strIPName;
                }

                if (PageParent != null)
                {
                    PageParent.ToNext();
                }
            }
            catch (Exception ex)
            {
                ShowException(ex.Message);
            }
        }