コード例 #1
0
 private void MissionStudio_Click(object sender, RoutedEventArgs e)
 {
     if (_log.IsDebugEnabled)
     {
         _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString());
     }
     ScriptControl.AddButtonRowContent(new PlayPlayListButton());
     ScriptControl.SetArtemisInstallPath(Locations.ArtemisCopyPath);
     ScriptControl.Show();
     if (_log.IsDebugEnabled)
     {
         _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString());
     }
 }
コード例 #2
0
        private void MissionStudio_Click(object sender, RoutedEventArgs e)
        {
            Button btn = sender as Button;

            if (btn != null)
            {
                big_message miss = btn.CommandParameter as big_message;
                if (miss != null)
                {
                    ScriptControl.AddButtonRowContent(new PlayPlayListButton());
                    ScriptControl.SetArtemisInstallPath(Locations.ArtemisCopyPath);
                    ScriptControl.Show(miss.MissionPath);
                }
            }
        }