Exemplo n.º 1
0
 private void FrmVideoCreate_Load(object sender, EventArgs e)
 {
     try
     {
         int GroupID = Program.sgworld.ProjectTree.FindItem(@"Video\temp");
         if (GroupID > 0)
         {
             CurrentVideo = (IPresentation61)Program.sgworld.ProjectTree.GetObject(GroupID);
             this.labelRecord.Text = "开始录制";
             this.labelPlay.Text = "播放";
             this.simpleBtnPlay.Image = Properties.Resources.GenericBlueRightArrowNoTail32;
             this.simpleBtnPlay.Enabled = false;
             this.simpleBtnStop.Enabled = false;
             this.simpleBtnVideoExport.Enabled = false;
         }
         else
             MessageBox.Show("创建视频不成功!");
     }
     catch
     {
         DialogResult dr = MessageBox.Show("遇到问题!可能原因:缺乏必要图标文件,如果窗体显示无异常,可以选择忽略以继续","",MessageBoxButtons.AbortRetryIgnore,MessageBoxIcon.Stop);
         if (dr == DialogResult.Abort)
             this.Close();
     }
 }
Exemplo n.º 2
0
 private void FrmVideoCreate_Load(object sender, EventArgs e)
 {
     try
     {
         int GroupID = Program.sgworld.ProjectTree.FindItem(@"Video\temp");
         if (GroupID > 0)
         {
             CurrentVideo                      = (IPresentation61)Program.sgworld.ProjectTree.GetObject(GroupID);
             this.labelRecord.Text             = "开始录制";
             this.labelPlay.Text               = "播放";
             this.simpleBtnPlay.Image          = Properties.Resources.GenericBlueRightArrowNoTail32;
             this.simpleBtnPlay.Enabled        = false;
             this.simpleBtnStop.Enabled        = false;
             this.simpleBtnVideoExport.Enabled = false;
         }
         else
         {
             MessageBox.Show("创建视频不成功!");
         }
     }
     catch
     {
         DialogResult dr = MessageBox.Show("遇到问题!可能原因:缺乏必要图标文件,如果窗体显示无异常,可以选择忽略以继续", "", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Stop);
         if (dr == DialogResult.Abort)
         {
             this.Close();
         }
     }
 }