private void ShowView(RadForm frm) { frm.MdiParent = _MainView; frm.ThemeClassName = _MainView.ThemeClassName; frm.ThemeName = _MainView.ThemeName; frm.Show(); }
public void DisplayView(RadForm view) { this.Cursor = Cursors.WaitCursor; this.SuspendLayout(); this.pnlMain.SuspendLayout(); view.TopLevel = false; view.Width = pnlMain.Width; view.Height = pnlMain.Height; if (pnlMain.Controls.Count == 1) { Control control = pnlMain.Controls[0]; control.Visible = false; pnlMain.Controls.Clear(); control.Dispose(); control = null; } pnlMain.Controls.Add(view); view.Dock = DockStyle.Fill; view.Show(); view.Focus(); this.pnlMain.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); this.Cursor = Cursors.Default; }
public void ShowLoginDialog() { var frm = new Views.Login.LoginView(); //frm.MdiParent = _MainView; //frm.ThemeClassName = _MainView.ThemeClassName; frm.ThemeName = _MainView.ThemeName; var overlayForm = new RadForm(); overlayForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; overlayForm.ShowInTaskbar = false; overlayForm.Width = _MainView.Width; overlayForm.Height = _MainView.Height; overlayForm.Top = _MainView.Top; overlayForm.Left = _MainView.Left; overlayForm.StartPosition = _MainView.StartPosition; // Set the opacity to 75%. overlayForm.Opacity = .75; overlayForm.MdiParent = _MainView; overlayForm.Show(); frm.ShowDialog(); overlayForm.Close(); overlayForm.Dispose(); }
private void OpenForm(string strMenuName, string strFormName) { RadForm _RadForm = new RadForm(); _RadForm = TryGetFormByName(strFormName); HostWindow _HostWindowForm = null; if (ClsUtility._IClsUtility.IsFormOpen(_RadForm.GetType(), RdDockMain, out _HostWindowForm)) { _HostWindowForm.ActivateAsMdiChild(); _RadForm.Activate(); RdDockMain.ActivateWindow(_HostWindowForm); RdDockMain.ActivateMdiChild(_RadForm); } else { //var icon = IconChar.FileExcel; Color randomColor = Color.FromArgb(rnd.Next(256), rnd.Next(256), rnd.Next(256)); cFormIcon = _RadForm.Tag != null && _RadForm.Tag.ToString().Trim() != "" ? _RadForm.Tag.ToString().Trim() : "Circle"; var iconImage = ((IconChar)Enum.Parse(typeof(IconChar), cFormIcon)).ToBitmap(16, randomColor); _RadForm.MdiParent = this; _RadForm.Show(); _RadForm.Activate(); //_RadForm.Icon = iconImage; RdDockMain.ActivateMdiChild(_RadForm); foreach (DockWindow dw in RdDockMain.DockWindows) { dw.AllowedDockState = ~AllowedDockState.Floating; } } }
public static void LlamarFormAPanel(RadForm form, RadPanel panel) { panel.Controls.Clear(); SplashScreen(form); form.TopLevel = false; form.Dock = DockStyle.Fill; form.Parent = panel; form.Show(); }
public static void Show(string content, IWin32Window owner, string title = "Bitte QR-Code einscannen") { var frm = new RadForm(); frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowIcon = false; frm.Text = title; frm.BackgroundImageLayout = ImageLayout.Zoom; var qrGenerator = new QRCodeGenerator(); var qrCode = qrGenerator.CreateQrCode(content, QRCodeGenerator.ECCLevel.L); frm.BackgroundImage = qrCode.GetGraphic(20); frm.Show(owner); }
private void OpenForm(string strMenuName, string strFormName) { RadForm _RadForm = new RadForm(); _RadForm = TryGetFormByName(strFormName); HostWindow _HostWindowForm = null; if (ClsUtility._IClsUtility.IsFormOpen(_RadForm.GetType(), RdDockMain, out _HostWindowForm)) { _HostWindowForm.ActivateAsMdiChild(); _RadForm.Activate(); RdDockMain.ActivateWindow(_HostWindowForm); RdDockMain.ActivateMdiChild(_RadForm); } else { //obj = new Form(); // _RadForm = TryGetFormByName(strFormName); _RadForm.MdiParent = this; _RadForm.Show(); _RadForm.Activate(); RdDockMain.ActivateMdiChild(_RadForm); } }
private void okButton_Click(object sender, EventArgs e) { var validator = new Validate(); validator.Key = keyTextBox.Text; if (validator.IsValid) { if (validator.IsExpired) { RadMessageBox.Show(LanguageManager._("Your Beta-Key is expired!!")); } else { Workspace.Settings.Add("BetaAccepted", true); _mainFrm.Show(); Hide(); } } else { RadMessageBox.Show(LanguageManager._("Your Beta-Key is invalid!!")); } }