コード例 #1
0
ファイル: FrmCommUdpProps.cs プロジェクト: LoganDing/scada
        /// <summary>
        /// Отобразить форму модально
        /// </summary>
        public static void ShowDialog(SortedList<string, string> commCnlParams, out bool modified)
        {
            if (commCnlParams == null)
                throw new ArgumentNullException("commCnlParams");

            FrmCommUdpProps form = new FrmCommUdpProps();
            form.commCnlParams = commCnlParams;
            form.modified = false;
            form.ShowDialog();
            modified = form.modified;
        }
コード例 #2
0
        /// <summary>
        /// Отобразить форму модально
        /// </summary>
        public static void ShowDialog(SortedList <string, string> commCnlParams, out bool modified)
        {
            if (commCnlParams == null)
            {
                throw new ArgumentNullException("commCnlParams");
            }

            FrmCommUdpProps form = new FrmCommUdpProps();

            form.commCnlParams = commCnlParams;
            form.modified      = false;
            form.ShowDialog();
            modified = form.modified;
        }