コード例 #1
0
ファイル: StaticMethods.cs プロジェクト: cjonasl/Vocabulary
 public static string ReturnString(Main.LocationSizeOfMainFormAndTextBox locationSizeOfMainFormAndTextBox)
 {
     return(string.Format("{0} {1} {2} {3} {4} {5} {6} {7}",
                          locationSizeOfMainFormAndTextBox.mlx,
                          locationSizeOfMainFormAndTextBox.mly,
                          locationSizeOfMainFormAndTextBox.msw,
                          locationSizeOfMainFormAndTextBox.msh,
                          locationSizeOfMainFormAndTextBox.tlx,
                          locationSizeOfMainFormAndTextBox.tly,
                          locationSizeOfMainFormAndTextBox.tsw,
                          locationSizeOfMainFormAndTextBox.tsh
                          ));
 }
コード例 #2
0
ファイル: StaticMethods.cs プロジェクト: cjonasl/Vocabulary
 public static void ReadConfig(string dir, out string targetVocabularyFileFullPath, out string fileNameInfoFileFullPath, out int currentIndex, out Main.LocationSizeOfMainFormAndTextBox locationSizeOfMainFormAndTextBox, out bool setLocationSizeOfMainFormAndTextBoxManuallyInCode)
 {
     string[] v = ReturnFileContents(dir + "\\Config.txt").Split(new string[] { "\r\n" }, StringSplitOptions.None);
     targetVocabularyFileFullPath = v[0];
     fileNameInfoFileFullPath     = v[1];
     currentIndex = int.Parse(v[2]);
     string[] ls = v[3].Split(' ');
     locationSizeOfMainFormAndTextBox     = new Main.LocationSizeOfMainFormAndTextBox();
     locationSizeOfMainFormAndTextBox.mlx = int.Parse(ls[0]);
     locationSizeOfMainFormAndTextBox.mly = int.Parse(ls[1]);
     locationSizeOfMainFormAndTextBox.msw = int.Parse(ls[2]);
     locationSizeOfMainFormAndTextBox.msh = int.Parse(ls[3]);
     locationSizeOfMainFormAndTextBox.tlx = int.Parse(ls[4]);
     locationSizeOfMainFormAndTextBox.tly = int.Parse(ls[5]);
     locationSizeOfMainFormAndTextBox.tsw = int.Parse(ls[6]);
     locationSizeOfMainFormAndTextBox.tsh = int.Parse(ls[7]);
     setLocationSizeOfMainFormAndTextBoxManuallyInCode = bool.Parse(v[4]);
 }