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); }
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; }
public static void CheckDeepEndsDownloaded() { var configuration = SM.Get<Configuration>(); if (configuration.DeepEndsAssembliesDownloaded) { return; } DownloadDeepEnds(); configuration.DeepEndsAssembliesDownloaded = true; SaveToFile(); LoadFromFile(); Log.Push(nameof(CheckDeepEndsDownloaded)); }
public static void SaveToFile() { File.WriteAllText(ConfigurationJsonFilePath, Serializer.Serialize(SM.Get<Configuration>())); }
void MainForm_Closed(object sender, EventArgs e) { SM.Get <Configuration>().CheckInCommentDefaultValue = cmpCheckInComment.Text; Configuration.SaveToFile(); }