Beispiel #1
0
 public void RefactorString(String str)
 {
     try
     {
         String[] tempData = str.Split(new String[] { " -> " }, StringSplitOptions.RemoveEmptyEntries);
         String[] re       = tempData[0].Split(' ');
         String[] Refactor = { re[3], re[6] };
         Handler(Refactor);
         storeData.RefactorString(tempData[1]);
     }
     catch
     {
         MessageBox.Show("String: " + str + " is not in the right format");
     }
 }
 public void RefactorString(String str)
 {
     try
     {
         String[] tempData = str.Split(new String[] { " -> " }, StringSplitOptions.RemoveEmptyEntries);
         String[] re       = tempData[0].Split(' ');
         this.UserID = re[0];
         storeData.RefactorString(tempData[1]);
         storeStatistics.RefactorString(tempData[2]);
     }
     catch
     {
         MessageBox.Show("String: " + str + " is not in the right format");
     }
 }