Exemplo n.º 1
0
        private void ucModulePreview_Click(object sender, EventArgs e)
        {
            if (ModuleForm != null && !ModuleForm.IsDisposed)
            {
                try
                {
                    ModuleForm.ShowInTaskbar = false;
                    ModuleForm.Show(MainProcess.GetMainForm());
                    ModuleForm.WindowState = FormWindowState.Normal;
                }
                catch
                {
                }
                finally
                {
                    ModuleForm.ucModule.ucPreview = null;
                }
            }

            MainProcess.RemoveModulePreview(this);
        }