Esempio n. 1
0
        public static int MyAtoi2(string str)
        {
            SM sm = new SM();

            for (int i = 0; i < str.Length; i++)
            {
                sm.Get(str[i]);
            }
            return(sm.num);
        }
Esempio n. 2
0
        void OnLoadCompleted(object sender, RoutedEventArgs e)
        {
            buttonUpdateMessageCs.Focus();

            if (string.IsNullOrWhiteSpace(VisualStudio.CursorSelectedText))
            {
                buttonViewMethodCallGraph.Visibility = Visibility.Collapsed;
            }
            else
            {
                buttonViewMethodCallGraph.Content = buttonViewMethodCallGraph.Content + ": " + VisualStudio.CursorSelectedText;
            }

            cmpCheckInComment.Text = SM.Get <Configuration>().CheckInCommentDefaultValue;
        }
Esempio n. 3
0
        public static void CheckDeepEndsDownloaded()
        {
            var configuration = SM.Get<Configuration>();
            if (configuration.DeepEndsAssembliesDownloaded)
            {
                return;
            }

            DownloadDeepEnds();

            configuration.DeepEndsAssembliesDownloaded = true;

            SaveToFile();

            LoadFromFile();

            Log.Push(nameof(CheckDeepEndsDownloaded));
        }
Esempio n. 4
0
 public static void SaveToFile()
 {
     File.WriteAllText(ConfigurationJsonFilePath, Serializer.Serialize(SM.Get<Configuration>()));
 }
Esempio n. 5
0
 void MainForm_Closed(object sender, EventArgs e)
 {
     SM.Get <Configuration>().CheckInCommentDefaultValue = cmpCheckInComment.Text;
     Configuration.SaveToFile();
 }