Exemple #1
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            string id = uuid.Text.Replace("-", "");

            if (!Regex.IsMatch(id, @"^[0-9a-fA-F]{32}$"))
            {
                CustomMessageBox.ShowMessage("Invalid UUID", "error", false);
                return;
            }
            long[] pair = CommandUtil.UUIDGetLeastMostFromString(id);
            id_most.Text  = pair[0].ToString();
            id_least.Text = pair[1].ToString();
        }