/// <summary> /// When overridden in a derived class, shows the smartPart on the workspace. /// </summary> /// <param name="smartPart">The smart part to show.</param> /// <param name="smartPartInfo">The information to apply to the smart part.</param> protected override void OnShow(Control smartPart, RibbonWindowSmartPartInfo smartPartInfo) { RibbonForm form = GetOrCreateForm(smartPart); smartPart.Show(); ShowForm(form, smartPartInfo); }
void ViewModel_SelectedModuleTypeChanged(object sender, System.EventArgs e) { RibbonForm mainForm = modulesPanel.FindForm() as RibbonForm; if (mainForm != null) { mainForm.Ribbon.UnMergeRibbon(); if (mainForm.Ribbon.StatusBar != null) { mainForm.Ribbon.StatusBar.UnMergeStatusBar(); } } modulesPanel.Controls.Clear(); Control module = ViewModel.GetModule(ViewModel.SelectedModuleType) as Control; if (module != null) { module.Dock = DockStyle.Fill; modulesPanel.Controls.Add(module); } if (mainForm != null) { IRibbonModule ribbonModule = module as IRibbonModule; if (ribbonModule != null) { mainForm.Ribbon.MergeRibbon(ribbonModule.Ribbon); if (mainForm.Ribbon.StatusBar != null) { mainForm.Ribbon.StatusBar.MergeStatusBar(ribbonModule.Ribbon.StatusBar); } } } }
public static void ShowChild(RibbonForm parent, XtraForm child) { child.MdiParent = parent; child.WindowState = System.Windows.Forms.FormWindowState.Maximized; child.Show(); child.Focus(); }
private static void ShowNotifications(IList notificationInfos, RibbonForm form) { DynamicDataServiceContext dbcontext = new DynamicDataServiceContext(); AlertControl alertControl = new AlertControl(); alertControl.AutoHeight = true; alertControl.AlertClick += (sender, e) => { NotificationData data = (NotificationData)e.Info.Tag; var notificationUser = dbcontext.GetOrNew("NotificationRecipient", data.NotificationRecipientId); notificationUser.AsDyanmic().NotificationStatus = "Readed"; notificationUser.AsDyanmic().ReadedOn = DateTime.Now; dbcontext.SaveChanges(); e.AlertForm.Hide(); }; AlertManage manager = new AlertManage(alertControl, form); foreach (var notificationInfo in notificationInfos) { var notificationUser = dbcontext.GetOrNew("NotificationRecipient", notificationInfo.AsDyanmic().NotificationRecipientId); notificationUser.NotificationStatus = "Opened"; manager.ShowAlert(notificationInfo); } dbcontext.SaveChanges(); }
/// <summary> /// When overridden in a derived class, applies the smartPartInfo /// to the smartPart that lives in the workspace. /// </summary> protected override void OnApplySmartPartInfo(Control smartPart, RibbonWindowSmartPartInfo smartPartInfo) { RibbonForm form = windowDictionary[smartPart]; SetWindowProperties(form, smartPartInfo); SetWindowLocation(form, smartPartInfo); }
static void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { DynamicDataServiceContext dbcontext = new DynamicDataServiceContext(); Dictionary <string, string> additionProperties = new Dictionary <string, string>(); additionProperties.Add("Notification", "Notification"); CriteriaOperator filter = new BinaryOperator("RecipientId", AuthorizationManager.CurrentUserId, BinaryOperatorType.Equal) & new BinaryOperator("NotificationStatus", "NotSend", BinaryOperatorType.Equal); var notificationInfos = dbcontext.GetObjects("NotificationRecipient", filter, additionProperties); if (notificationInfos.ToArrayList().Count <= 0) { return; } if (_workItem == null) { return; } WorkItem workItem = _workItem; RibbonWindowWorkspace workSpace = workItem.RootWorkItem.Items[WorkspaceNames.RibbonWindows] as RibbonWindowWorkspace; if (workSpace == null) { return; } RibbonForm form = workSpace.OwnerForm as RibbonForm; if (form == null) { return; } ShowNotificationDelegate s = new ShowNotificationDelegate(ShowNotifications); form.BeginInvoke(s, notificationInfos, form); }
private static void ShowNotifications(IList notificationInfos, RibbonForm form) { IObjectSpace objectSpace = new ODataObjectSpace(); AlertControl alertControl = new AlertControl(); alertControl.AutoHeight = true; AlertButton setReaded = new AlertButton(new Bitmap(WinFormsResourceService.GetBitmap("notification"), new Size(16, 16))); setReaded.Style = AlertButtonStyle.CheckButton; setReaded.Down = false; setReaded.Hint = "Mark Readed"; setReaded.Name = "MarkReaded"; alertControl.Buttons.Add(setReaded); AlertButton deleteBtn = new AlertButton(new Bitmap(WinFormsResourceService.GetBitmap("overlay_delete"), new Size(16, 16))); deleteBtn.Style = AlertButtonStyle.CheckButton; deleteBtn.Down = false; deleteBtn.Hint = "Delete Notification"; deleteBtn.Name = "DelNotification"; alertControl.Buttons.Add(deleteBtn); alertControl.ButtonClick += new AlertButtonClickEventHandler(DelButtonClick); alertControl.BeforeFormShow += (sender, e) => { e.AlertForm.BackgroundImage = WinFormsResourceService.GetBitmap("nback"); e.AlertForm.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; int l = 1; while (e.AlertForm.AlertInfo.Text.Length > 12 * l) { e.AlertForm.AlertInfo.Text = e.AlertForm.AlertInfo.Text.Insert(12 * l, " "); l++; } e.AlertForm.Size = new System.Drawing.Size(320, 300); }; alertControl.AlertClick += (sender, e) => { NotificationDTO data = (NotificationDTO)e.Info.Tag; MarkReaded(objectSpace, data); e.AlertForm.Tag = data; e.AlertForm.Disposed += AlertForm_Disposed; e.AlertForm.Close(); }; AlertManage manager = new AlertManage(alertControl, form); foreach (var notificationInfo in notificationInfos) { var pro = notificationInfo.GetType().GetProperty("NotificationRecipientId"); if (pro == null) { continue; } Guid notificationRecipientId = (Guid)pro.GetValue(notificationInfo, null); var notificationUser = (Katrin.Domain.Impl.NotificationRecipient)objectSpace.GetOrNew("NotificationRecipient", notificationRecipientId, null); notificationUser.NotificationStatus = "Opened"; manager.ShowAlert((NotificationDTO)notificationInfo); } objectSpace.SaveChanges(); }
public static void Run(RibbonForm f, StartupNextInstanceEventHandler startupHandler) { SingleInstanceApplication app = new SingleInstanceApplication(); app.MainForm= f; if (f.DialogResult != DialogResult.Cancel) { app.StartupNextInstance += startupHandler; app.Run(Environment.GetCommandLineArgs()); } }
public void StartReceiveNotification(RibbonForm ribbonForm) { System.Timers.Timer timer = new System.Timers.Timer(); timer.Interval = 18000; timer.Elapsed += timer_Elapsed; _ribbonForm = ribbonForm; timer.Enabled = true; timer_Elapsed(null, null); timer.Start(); }
private void Window_TemplateChanged(object sender, EventArgs e) { RibbonForm ribbonForm = Frame.Template as RibbonForm; if (ribbonForm != null && ribbonForm.Ribbon != null) { RibbonControl ribbon = ribbonForm.Ribbon; ribbon.PageHeaderMinWidth = 100; ribbon.ShowExpandCollapseButton = DefaultBoolean.False; } }
private void updateall(Divelements.SandRibbon.Rendering.Office2007ColorScheme color) { Program.colorTheme = color;; foreach (Form item in Application.OpenForms) { RibbonForm frm = item as RibbonForm; if (frm != null) { frm.LocalRenderer.ColorScheme = color; } } }
public object Initialize(Dictionary <string, object> param) { var r = param["RPGMAIN"] as RibbonPageGroup; frmMain = param["THIS"] as RibbonForm; btn = new BarButtonItem(); btn.Caption = Description; btn.ItemClick += OnItemClick; btn.ImageUri.Uri = "CustomizeGrid;Office2013"; r.ItemLinks.Add(btn); return(true); }
protected override void OnSelectedPageChanged(object sender, XtraTab.ViewInfo.ViewInfoTabPageChangedEventArgs e) { base.OnSelectedPageChanged(sender, e); if (SelectedPage != null) { RibbonForm form = this.SelectedPage.MdiChild as RibbonForm; RibbonForm formmdi = this.MdiParent as RibbonForm; if (form != null && formmdi != null && formmdi.Ribbon != null && form.Ribbon.MergedCategories.TotalCategory.GetFirstVisiblePage() != null) { formmdi.Ribbon.SelectedPage = formmdi.Ribbon.MergedCategories.TotalCategory.GetPageByText(form.Ribbon.MergedCategories.TotalCategory.GetFirstVisiblePage().Text); } } }
/// <summary> /// RibbonForm的设置 /// </summary> /// <param name="ribbonForm1"></param> public static void RibbonFormStyle(RibbonForm ribbonForm1) { ribbonForm1.MinimizeBox = false; ribbonForm1.MaximizeBox = false; ribbonForm1.CloseBox = false; //ribbonForm1.FormBorderStyle = FormBorderStyle.None; ribbonForm1.Text = ""; ribbonForm1.ControlBox = false; //没有标题 ribbonForm1.FormBorderStyle = FormBorderStyle.None; //任务栏不显示 ribbonForm1.ShowInTaskbar = false; }
private void View_ControlsCreated(object sender, EventArgs e) { RibbonForm ribbonForm = Frame.Template as RibbonForm; if (ribbonForm != null && ribbonForm.Ribbon != null) { ribbonControl = ribbonForm.Ribbon; ganttControl = View.Editor?.Control as GanttControl; if (ribbonControl != null && ganttControl != null) { AddGanttPageToRibbon(); } } }
protected override void OnHandleCreated(EventArgs e) { base.OnHandleCreated(e); _parentRibbonForm = ((RibbonForm)FindForm()); if (_parentRibbonForm != null) { ribbonControl1.Visible = false; if (_parentRibbonForm.MdiParent != null) { _parentRibbonForm.Ribbon.Visible = false; ribbonControl1.MdiMergeStyle = RibbonMdiMergeStyle.Never; _parentRibbonForm.Activated += ParentRibbonFormOnActivated; _parentRibbonForm.Deactivate += ParentRibbonFormOnDeactivate; } } }
public exportForm(RibbonForm Form) { InitializeComponent(); mainForm = Form as EVDS; txtCutOff.Text = "5"; lbOutput.Items.Clear(); cbCostAttribute.Items.Clear(); ckbShowLines.Checked = false; ckbUseRestriction.Checked = false; mainForm.axMapControl1.ClearLayers(); //txtWorkspacePath.Text = Application.StartupPath + @"\..\Instance\Philadelphia.gdb"; txtWorkspacePath.Text = @"C:\Users\Yuanyun\Desktop\Instance\Philadelphia.gdb"; txtNetworkDataset.Text = "Highway_ND"; txtFeatureDataset.Text = "Transportation"; txtInputFacilities.Text = "EV"; gbServiceAreaSolver.Enabled = false; }
public void CreateMDIControl(string strTitle, string strTag, RibbonForm frmBase, Image image) { try { DevExpress.XtraTabbedMdi.XtraMdiTabPage currentPage = null; if (currentPage == null) { loading.ShowWaitForm(); frmBase.Dock = DockStyle.Fill; frmBase.FormClosing += new FormClosingEventHandler(frm_FormClosing); frmBase.Text = strTitle; frmBase.Tag = strTag; if (!IsTabbedMdi) { frmBase.ClientSize = new Size(this.Width, this.Height); } frmBase.MdiParent = this; if (image != null) { frmBase.ShowIcon = true; } else { image = base.Icon.ToBitmap(); } frmBase.Show(); currentPage = xtraTabbedMdiMgr.SelectedPage; xtraTabbedMdiMgr.SelectedPage.Image = image; } else { xtraTabbedMdiMgr.SelectedPage = currentPage; } } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } finally { loading.CloseWaitForm(); LayoutMdi(); } }
private static void WinApplication_CustomizeTemplate(object sender, CustomizeTemplateEventArgs e) { if (e.Context == TemplateContext.ApplicationWindow || e.Context == TemplateContext.View) { RibbonForm ribbonForm = e.Template as RibbonForm; IActionControlsSite actionControlsSite = ribbonForm as IActionControlsSite; if ((ribbonForm != null) && (actionControlsSite != null)) { IActionControlContainer filtersActionControlContainer = actionControlsSite.ActionContainers.FirstOrDefault <IActionControlContainer>(x => x.ActionCategory == "Filters"); if (filtersActionControlContainer is BarLinkActionControlContainer) { BarLinkActionControlContainer barFiltersActionControlContainer = (BarLinkActionControlContainer)filtersActionControlContainer; BarLinkContainerItem barFiltersItem = barFiltersActionControlContainer.BarContainerItem; RibbonControl ribbonControl = ribbonForm.Ribbon; foreach (RibbonPage page in ribbonControl.Pages) { foreach (RibbonPageGroup group in page.Groups) { BarItemLink barFiltersItemLink = group.ItemLinks.FirstOrDefault <BarItemLink>(x => x.Item == barFiltersItem); if (barFiltersItemLink != null) { group.ItemLinks.Remove(barFiltersItemLink); } } } ribbonForm.Ribbon.PageHeaderItemLinks.Add(barFiltersItem); } } } else if ((e.Context == TemplateContext.LookupControl) || (e.Context == TemplateContext.LookupWindow)) { LookupControlTemplate lookupControlTemplate = e.Template as LookupControlTemplate; if (lookupControlTemplate == null && e.Template is LookupForm) { lookupControlTemplate = ((LookupForm)e.Template).FrameTemplate; } if (lookupControlTemplate != null) { lookupControlTemplate.ObjectsCreationContainer.ContainerId = "LookupNew"; lookupControlTemplate.SearchActionContainer.ContainerId = "LookupFullTextSearch"; } } }
public FWStatusBar(RibbonForm form) { //((System.ComponentModel.ISupportInitialize)(form)).BeginInit(); this.rStatusBar = new RibbonStatusBar(); form.Controls.Add(rStatusBar); rStatusBar.Ribbon = form.Ribbon; form.Ribbon.StatusBar = rStatusBar; rStatusBar.Dock = System.Windows.Forms.DockStyle.Bottom; rStatusBar.ShowSizeGrip = true; this.panelUser = new BarStaticItem(); this.panelUser.Caption = ""; this.panelUser.AutoSize = DevExpress.XtraBars.BarStaticItemSize.Spring; this.panelUser.TextAlignment = System.Drawing.StringAlignment.Near; this.panelUser.Width = 0; this.panelDate = new BarStaticItem(); this.panelDate.Caption = ""; this.panelDate.AutoSize = DevExpress.XtraBars.BarStaticItemSize.Spring; this.panelDate.TextAlignment = System.Drawing.StringAlignment.Near; this.panelDate.Width = 0; this.panelState = new BarStaticItem(); this.panelState.Caption = ""; this.panelState.AutoSize = DevExpress.XtraBars.BarStaticItemSize.Spring; this.panelState.TextAlignment = System.Drawing.StringAlignment.Near; this.panelState.Width = 0; BarButtonItem barButtonItem1 = new BarButtonItem(); barButtonItem1.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); barButtonItem1.Appearance.ForeColor = System.Drawing.Color.Blue; barButtonItem1.Appearance.Options.UseFont = true; barButtonItem1.Appearance.Options.UseForeColor = true; barButtonItem1.Caption = "www.protocolvn.com"; barButtonItem1.Width = 0; barButtonItem1.ItemClick += new ItemClickEventHandler(barButtonItem1_ItemClick); this.rStatusBar.ItemLinks.Add(this.panelUser); this.rStatusBar.ItemLinks.Add(this.panelDate, true); this.rStatusBar.ItemLinks.Add(this.panelState, true); this.rStatusBar.ItemLinks.Add(barButtonItem1, true); //((System.ComponentModel.ISupportInitialize)(form)).EndInit(); }
private void Application_CustomizeTemplate(object sender, CustomizeTemplateEventArgs e) { RibbonForm ribbonForm = e.Template as RibbonForm; if (ribbonForm != null && ribbonForm.Ribbon is XafRibbonControlV2) { XafRibbonControlV2 ribbonControl = ribbonForm.Ribbon as XafRibbonControlV2; ribbonControl.BeginInit(); foreach (IModelRibbonAction modelAction in modelActions.Select(action => action).Cast <IModelRibbonAction>().Where(a => !string.IsNullOrEmpty(a.TargetRibbonPage))) { RibbonPage page = null; page = ribbonControl.Pages.GetPageByText(modelAction.TargetRibbonPage); if (page == null) { page = new RibbonPage(modelAction.TargetRibbonPage); page.Name = modelAction.TargetRibbonPage; ribbonControl.Pages.Add(page); } var group = page.Groups.GetGroupByText(modelAction.TargetRibbonGroup); if (group == null) { var ribbonGroup = new RibbonPageGroup(modelAction.TargetRibbonGroup); ribbonGroup.Name = modelAction.TargetRibbonGroup; ribbonGroup.AllowTextClipping = false; page.Groups.Add(ribbonGroup); var barLinkContainerExItem = new BarLinkContainerExItem(); ribbonControl.Items.Add(barLinkContainerExItem); ribbonGroup.ItemLinks.Add(barLinkContainerExItem); var actionContainer = new BarLinkActionControlContainer(); actionContainer.BeginInit(); ribbonControl.ActionContainers.Add(actionContainer); actionContainer.ActionCategory = modelAction.TargetRibbonGroup; actionContainer.BarContainerItem = barLinkContainerExItem; actionContainer.EndInit(); } } ribbonControl.EndInit(); } }
/// <summary> /// Sets specific properties for the given form. /// </summary> protected static void SetWindowProperties(RibbonForm form, RibbonWindowSmartPartInfo info) { form.WindowState = info.WindowState; form.Text = info.Title; form.Width = info.Width != 0 ? info.Width : form.Width; form.Height = info.Height != 0 ? info.Height : form.Height; form.ControlBox = info.ControlBox; form.MaximizeBox = info.MaximizeBox; form.MinimizeBox = info.MinimizeBox; form.Icon = info.Icon; form.AcceptButton = info.AcceptButton; form.CancelButton = info.CancelButton; form.FormBorderStyle = info.FormBorderStyle; form.StartPosition = info.StartPosition; form.ShowInTaskbar = info.ShowInTaskbar; form.AllowFormGlass = DevExpress.Utils.DefaultBoolean.False; form.Controls.Add(info.StatusBar); form.Controls.Add(info.Ribbon); form.Ribbon = info.Ribbon; form.StatusBar = info.StatusBar; }
private RibbonForm FormBul(string FormAdi) { try { if (FormAdi == "") { return(null); } string FormTypeFullName = string.Format("{0}.{1}", this.GetType().Namespace, FormAdi); Type type = Type.GetType(FormTypeFullName, true); RibbonForm frm = (RibbonForm)Activator.CreateInstance(type); return(frm); } catch (Exception Hata) { //Genel.LogErrorYaz(iFormID, Hata); //XtraMessageBox.Show(Genel.DilGetirMesaj(1034) + "\n\n" + Hata.Message, Genel.DilGetirMesaj(2), MessageBoxButtons.OK, MessageBoxIcon.Error); return(null); } }
private void frmSpreadsheetControl_ParentChanged(object sender, EventArgs e) { if (parent != null) { parent.Merge -= new RibbonMergeEventHandler(parent_Merge); } MdiClient parentClient = Parent as MdiClient; if (parentClient == null) { return; } RibbonForm form = parentClient.FindForm() as RibbonForm; if (form == null) { return; } parent = form.Ribbon; parent.Merge += new RibbonMergeEventHandler(parent_Merge); }
public static void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { //ReduceMemory(); IObjectSpace objectSpace = new ODataObjectSpace(); AuthorizationManager.NotificationList.DataSource = GetListData(objectSpace); var notificationInfos = ((List <NotificationDTO>)AuthorizationManager.NotificationList.List).Where(c => c.NotificationStatusName == "NotSend").ToList(); //objectSpace.GetObjects("NotificationRecipient", filter, additionProperties); if (notificationInfos.Count <= 0) { return; } RibbonForm form = _ribbonForm; if (form == null) { return; } ShowNotificationDelegate s = new ShowNotificationDelegate(ShowNotifications); form.BeginInvoke(s, notificationInfos, form); }
private void ShowForm(RibbonForm form, RibbonWindowSmartPartInfo smartPartInfo) { SetWindowProperties(form, smartPartInfo); if (smartPartInfo.Modal) { SetWindowLocation(form, smartPartInfo); // Argument can be null. It's the default for the other overload. form.ShowDialog(ownerForm); } else { if (ownerForm != null) // Call changes if no owner is specified. { form.Show(ownerForm); } else { form.Show(); } SetWindowLocation(form, smartPartInfo); form.BringToFront(); } }
private void BenimMenumItemClickMethod(ItemClickEventArgs e) { try { RibbonForm f = FormBul(e.Item.Name); if (MDIFormAcikMi(f)) { XtraMdiTabPage page = FindPageByText(f.Text); xtraTabbedMdiManager1.SelectedPage = page; Ribbon.HideApplicationButtonContentControl(); return; } Ribbon.HideApplicationButtonContentControl(); f.Ribbon.MdiMergeStyle = RibbonMdiMergeStyle.Always; f.MdiParent = Master.ActiveForm; //this; f.Show(); Ribbon.SelectedPage = f.Ribbon.Pages[0]; } catch (Exception Hata) { //Genel.LogErrorYaz(iFormID, Hata); //XtraMessageBox.Show(Genel.DilGetirMesaj(1034) + "\n\n" + Hata.Message, Genel.DilGetirMesaj(2), MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public static void OpenMdiChildForm(RibbonForm index, XtraUserControl uc, XtraTabbedMdiManager tab) { bool found = false; foreach (XtraForm frm in index.MdiChildren) { if (frm.Name.Equals(uc.Name)) { found = true; break; } } if (found) { foreach (XtraMdiTabPage _tab in tab.Pages) { if (_tab.Text.ToLower().Equals(LanguageEngine.GetOpenFormText(uc.Name, ConfigEngine.Language).ToLower())) { tab.SelectedPage = _tab; break; } } } else { XtraForm frm = new XtraForm(); frm.Text = LanguageEngine.GetOpenFormText(uc.Name, ConfigEngine.Language); frm.Name = uc.Name; frm.MdiParent = index; uc.Dock = DockStyle.Fill; frm.Controls.Clear(); frm.Controls.Add(uc); frm.Show(); } }
Dictionary <Type, RibbonForm> mdiForms = new Dictionary <Type, RibbonForm>(); //存储mdi窗体 /// <summary> /// 显示Mdi窗体 /// </summary> /// <param name="ucControl"></param> public void ShowMdiForm(UCBase ucControl) { if (ucControl == null) { return; } try { Type ucType = ucControl.GetType(); if (ucType.BaseType != typeof(UCBase) && ucType.BaseType.BaseType != typeof(UCBase)) { return; //类型不正确 返回 } if (mdiForms.ContainsKey(ucType)) //限定同一类型控件只能打开一个 { if (mdiForms[ucType] != null) { mdiForms[ucType].Activate(); return; } else { mdiForms.Remove(ucType); } } mdiForms.Add(ucType, null); //this.ShowWaitingPanel(() => //{ //if (ucBase is UCMainPage) //{ // UCMainPage mainPage = (UCMainPage)ucBase; // mainPage.BtnClick += x => // { // ShowMdiForm(x); // }; //} // return ucBase; // }, x => //{ // UCBase ucBase = (UCBase)x; RibbonForm mdiFrm = new RibbonForm() { MdiParent = this, Text = ucControl.Title, Dock = DockStyle.Fill }; ucControl.Dock = DockStyle.Fill; mdiFrm.Controls.Add(ucControl); mdiFrm.Disposed += (object sender, EventArgs e) => { if (mdiForms.ContainsKey(ucType)) { //if (!loginOut) mdiForms.Remove(ucType); } GC.Collect(); }; mdiForms[ucType] = mdiFrm; mdiFrm.Show(); // }); } catch (Exception e) { throw new Exception("打开Mdi窗体出错!原因:" + e.Message); } }
public WizardsForm(RibbonForm form) { this.m_Master = form; InitializeComponent(); }
public static void ChangeTextRibbonForm(RibbonForm form, string language) { form.Text = CaptionEngine.GetControlCaption(form.Name, form.Name, BaseConstant.PARENT_TEXT, language); }
/// <summary> /// 构造函数 /// </summary> /// <param name="parent"></param> public CActionFace(RibbonForm parent) { this.MdiParent = parent; }