private static void InvokeApplication(object sender, EventArgs e)
        {
            try
            {
                var actualPathToExe = GeneralOptions.Instance.ActualPathToExe;

                if (string.IsNullOrEmpty(actualPathToExe))
                {
                    actualPathToExe = FileFinderHelper.GetKnownActualPathToExe("Wireshark", exe, true);
                }

                InvokerHelper.InvokeApplication(actualPathToExe, Vsix.Name, CommonConstants.WiresharkOptionsName);
            }
            catch (Exception ex)
            {
                new FilePrompterHelper(Vsix.Name, null).InformUnexpectedError(ex);
            }
        }
Beispiel #2
0
        public void Initialize()
        {
            generalOptions.Load();

            labelActualPathToExe.Text            = CommonActualPathToExeOptionLabel;
            labelActualPathToExeDescription.Text = CommonConstants.ActualPathToExeOptionDetailedDescription;

            var actualPathToExe = generalOptions.ActualPathToExe;

            if (string.IsNullOrEmpty(actualPathToExe))
            {
                textActualPathToExe.Text = FileFinderHelper.GetKnownActualPathToExe("Wireshark", exe, true);
            }
            else
            {
                textActualPathToExe.Text = actualPathToExe;
            }
        }