Example #1
0
        private void RunSelectedCommand()
        {
            CommandItem command = GetSelectedCommand();

            if (command != null)
            {
                try
                {
                    command.Run();
                }
                catch (System.ComponentModel.Win32Exception)
                {
                    string title   = "Matsukichi (´・ω・`)";
                    string message = string.Format("Failed to start app: {0}", command.ScreenName);
                    MessageBox.Show(message, title, MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }

            HideMainWindow();
        }
Example #2
0
 public new void Add(CommandItem item)
 {
     Items.Add(item.ScreenName);
     base.Add(item);
 }