示例#1
0
        private void ExecuteOpenShower(object parameter)
        {
            //select shower from dialog
            IMessageBoxService _msgboxcommand = new MessageBoxService();
            string             _exefolder     = ConfigFileManager.GetLocalExePath();//  Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
            string             _filename      = _msgboxcommand.OpenFileDlg("Select Shower", true, false, "Shower Files(*." + Constants._showerfilenameext + ")| *." + Constants._showerfilenameext, null, _exefolder);

            _msgboxcommand = null;
            OpenSelectedShowerFile(_filename);
        }
示例#2
0
        private void ExecuteSaveShower(object parameter)
        {
            IMessageBoxService _msgboxcommand = new MessageBoxService();
            string             _exefolder     = ConfigFileManager.GetLocalExePath();// Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
            string             _filename      = _msgboxcommand.SaveFileDlg("Select Shower", "Logo Files(*." + Constants._showerfilenameext + ")| *." + Constants._showerfilenameext, null, _exefolder);

            _msgboxcommand = null;

            if (!string.IsNullOrEmpty(_filename))
            {
                SerializeShower(_filename);
            }
            MenuItems = MRUList.AddFile(MenuItems, _filename, OpenShowerFile);
        }
示例#3
0
 private void ExecuteOpenHelp(object parameter)
 {
     try
     {
         System.Diagnostics.Process.Start(ConfigFileManager.GetLocalExePath() + @"\Yankee Coating Shower Designer Pro.docx");
     }
     catch
     (System.ComponentModel.Win32Exception noBrowser)
     {
         if (noBrowser.ErrorCode == -2147467259)
         {
             MessageBox.Show(noBrowser.Message);
         }
     }
     catch (Exception other)
     {
         MessageBox.Show(other.Message);
     }
 }