Beispiel #1
0
        /// <summary>
        /// Отобразить форму модально
        /// </summary>
        public static void ShowDialog(int kpNum, KPView.KPProperties kpProps, AppDirs appDirs, UiCustomization uiCustomization)
        {
            FrmDevProps frmDevProps = new FrmDevProps
            {
                kpNum   = kpNum,
                kpProps = kpProps ?? throw new ArgumentNullException("kpProps"),
                                appDirs = appDirs ?? throw new ArgumentNullException("appDirs"),
                                                uiCustomization = uiCustomization ?? throw new ArgumentNullException("uiCustomization")
            };

            frmDevProps.ShowDialog();
        }
Beispiel #2
0
        /// <summary>
        /// Отобразить форму модально, открыв заданный файл
        /// </summary>
        public static void ShowDialog(AppDirs appDirs, UiCustomization uiCustomization,
                                      bool saveOnly, ref string fileName)
        {
            FrmDevTemplate frmDevTemplate = new FrmDevTemplate
            {
                appDirs = appDirs ?? throw new ArgumentNullException("appDirs"),
                                uiCustomization = uiCustomization ?? throw new ArgumentNullException("uiCustomization"),
                                                        initialFileName = fileName,
                                                        saveOnly        = saveOnly
            };

            frmDevTemplate.ShowDialog();
            fileName = frmDevTemplate.fileName;
        }
Beispiel #3
0
        /// <summary>
        /// Отобразить форму модально
        /// </summary>
        public static void ShowDialog(AppDirs appDirs, UiCustomization uiCustomization)
        {
            string fileName = "";

            ShowDialog(appDirs, uiCustomization, false, ref fileName);
        }