Example #1
0
            public void AppendShowHideTo(IComplexDialoge complexDlg)
            {
                #region Handle OFF

                if (this.Param1.ToLowerInvariant() == Keyword_Off)
                {
                    complexDlg.Close();
                    complexDlg.Dispose();

                    if (complexDlg is SplashDialog)
                    {
                        splashDialogs.Remove(this.GUIID);
                    }
                    else if (complexDlg is ProgressDialog)
                    {
                        progressDialgos.Remove(this.GUIID);
                    }

                    return;
                }

                #endregion Handle OFF

                #region Handle Show

                if (this.Param1.ToLowerInvariant() == Keyword_Show)
                {
                    if (!complexDlg.Visible)
                    {
                        complexDlg.Show();
                    }
                }

                #endregion Handle Show
            }
Example #2
0
            /// <summary>
            /// Append the given Options here to a IComplexDialoge.
            /// </summary>
            /// <param name="complexDlg"></param>
            public void AppendTo(IComplexDialoge complexDlg)
            {
                //ToDo: Implement the missing Options

                if (complexDlg.InvokeRequired)
                {
                    complexDlg.Invoke(new AsyncComplexDialoge(AppendTo), complexDlg);
                }

                complexDlg.TopMost = this.AlwaysOnTop;

                if (this.WinTitle != "")
                {
                    complexDlg.Title = this.WinTitle;
                }

                if (this.SubText != "")
                {
                    complexDlg.Subtext = this.SubText;
                }

                if (this.MainText != "")
                {
                    complexDlg.MainText = this.MainText;
                }

                if (!this.Hide)
                {
                    complexDlg.Show();
                }
            }
Example #3
0
            public void AppendShowHideTo(IComplexDialoge complexDlg)
            {
                #region Handle OFF

                if(this.Param1.ToLowerInvariant() == Keyword_Off) {
                    complexDlg.Close();
                    complexDlg.Dispose();

                    if(complexDlg is SplashDialog) {
                        splashDialogs.Remove(this.GUIID);
                    } else if(complexDlg is ProgressDialog) {
                        progressDialgos.Remove(this.GUIID);
                    }

                    return;
                }

                #endregion

                #region Handle Show

                if(this.Param1.ToLowerInvariant() == Keyword_Show) {
                    if(!complexDlg.Visible)
                        complexDlg.Show();
                }

                #endregion
            }
Example #4
0
            /// <summary>
            /// Append the given Options here to a IComplexDialoge.
            /// </summary>
            /// <param name="complexDlg"></param>
            public void AppendTo(IComplexDialoge complexDlg) {
                //ToDo: Implement the missing Options

                if(complexDlg.InvokeRequired) {
                    complexDlg.Invoke(new AsyncComplexDialoge(AppendTo), complexDlg);
                }

                complexDlg.TopMost = this.AlwaysOnTop;

                if(this.WinTitle != "")
                    complexDlg.Title = this.WinTitle;

                if(this.SubText != "")
                    complexDlg.Subtext = this.SubText;

                if(this.MainText != "")
                    complexDlg.MainText = this.MainText;


                if(!this.Hide) {
                    complexDlg.Show();
                }
            }