コード例 #1
0
        private void ProfileMatch_Like(object sender, RoutedEventArgs e)
        {
            vm_ProfileMatch pm = new vm_ProfileMatch();

            int messagebox = pm.vm_LikeProcess();

            if (messagebox == 1)
            {
                MessageBox.Show("Person liked! :)");
            }
            else if (messagebox == 2)
            {
                MessageBox.Show("Person liked back! :-)");
            }
            else if (messagebox == 3)
            {
                MessageBox.Show("You already like this person!");
            }
            else
            {
                MessageBox.Show("Something went horribly wrong :'(");
            }
        }
コード例 #2
0
 public ProfileMatch()
 {
     DataContext = new vm_ProfileMatch();
     InitializeComponent();
 }