Exemple #1
0
        private void MeetingClick(object sender, RoutedEventArgs e)
        {
            System.Windows.Controls.Button button = sender as System.Windows.Controls.Button;
            clickShowFiles newWindow = new clickShowFiles(button.Tag.ToString());

            newWindow.Show();
        }
 public void fileClick(object sender, EventArgs e)
 {
     if (SystemParameters.SwapButtons) // Or use SystemInformation.MouseButtonsSwapped
     {
         // openfile
     }
     else
     {
         string str = sender.ToString();
         str = str.Substring(str.LastIndexOf(' ') + 1);
         if (str != "System.Windows.Controls.Button")
         {
             clickShowFiles newWindow = new clickShowFiles(str);
             newWindow.Show();
         }
         else
         {
             System.Windows.MessageBox.Show("No file modified in this meeting.");
         }
     }
 }