Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            long[] pair = CommandUtil.randomUUIDPair();
            id_most.Text  = pair[0].ToString();
            id_least.Text = pair[1].ToString();

            string id = CommandUtil.UUIDPairToString(pair[0], pair[1]);

            uuid.Text = id;
        }
Пример #2
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     try
     {
         long most  = long.Parse(id_most.Text);
         long least = long.Parse(id_least.Text);
         uuid.Text = CommandUtil.UUIDPairToString(most, least);
     }
     catch (FormatException)
     {
         CustomMessageBox.ShowMessage("most/least is not long", "error", false);
     }
 }
Пример #3
0
 public string uuidToString(long uuidLeast, long uuidMost)
 {
     return(CommandUtil.UUIDPairToString(uuidMost, uuidLeast));
 }