예제 #1
0
        private void buildContractMenuItem_Click(object sender, RoutedEventArgs e)
        {
            CSharp.Compile();

            if (!SmartContract.Build())
            {
                System.Windows.MessageBox.Show("Build Failed!", "Neo Studio", System.Windows.MessageBoxButton.OK, System.Windows.MessageBoxImage.Error);
            }

            RefreshSoltionExplorer();
        }
예제 #2
0
 private void dockPanel_ActiveContentChanged(object sender, EventArgs e)
 {
     if (ActiveDocument != null)
     {
         this.Title = String.Format(CultureInfo.CurrentCulture, "{0} - {1}", ActiveDocument.Title, DocumentView.DocTitle);
         if (System.IO.Path.GetExtension(ActiveDocument.FilePath) == ".cs")
         {
             Properties.Settings.Default.LastWalletPath = ActiveDocument.FilePath;
             Properties.Settings.Default.Save();
             CSharp.Compile();
         }
     }
     else
     {
         this.Title = DocumentView.DocTitle;
     }
 }