public override void GetMainMenu(string menuName, MenuBuilder mb) { if (menuName == "tools" && LicenseTool.FeatureAllowed(DataSynchronizationFeature.Test)) { mb.AddItem("s_synchronize_data", ShowDataSynWindow); } }
public override void GetMainMenu(string menuName, MenuBuilder mb) { if (menuName == "tools" && LicenseTool.FeatureAllowed(DbStructSynchronizationFeature.Test)) { mb.AddItem("s_synchronize_structure", SynchronizeStructureForm.RunNoParam); } }
public override void GetMainMenu(string menuName, MenuBuilder mb) { if (menuName == "tools" && LicenseTool.FeatureAllowed(VersionedDbFeature.Test)) { mb.AddItem("s_version_db", CreateVersionDbWindow); } }
public override void GetToolbarItems(string toolbarName, List <ToolStripItem> items) { if (toolbarName == "main" && LicenseTool.FeatureAllowed(VersionedDbFeature.Test)) { var btn = new ToolStripButton(Texts.Get("s_version_db"), CoreIcons.versiondb); btn.Click += new EventHandler(btn_Click); items.Add(btn); } }
public override void GetToolbarItems(string toolbarName, List <ToolStripItem> items) { if (toolbarName == "main" && LicenseTool.FeatureAllowed(DataSynchronizationFeature.Test)) { var btn = new ToolStripButton(Texts.Get("s_data_synchronization"), DataSynIcons.sync); btn.Click += new EventHandler(btn_Click); items.Add(btn); } }
public override void GetToolbarItems(string toolbarName, List <ToolStripItem> items) { if (toolbarName == "query" && LicenseTool.FeatureAllowed(QueryHistoryFeature.Test)) { var btn = new ToolStripButton(Texts.Get("s_query_history"), CoreIcons.history); btn.Click += new EventHandler(btn_Click); btn.DisplayStyle = ToolStripItemDisplayStyle.Image; items.Add(btn); } }
public override void GetAdditionalWidgets(List <IWidget> res, AppObject appobj) { var da = appobj as DatabaseAppObject; if (LicenseTool.FeatureAllowed(MsSqlBackupFeature.Test) && da != null) { res.Add(new MsSqlBackupsWidget()); } if (da != null) { res.Add(new MsSqlTableSizesWidget()); } }
public DiagramEditFrame(IVirtualFile file, IDatabaseSource conn) { InitializeComponent(); OnlineHelpManager.RegisterHelpButton(btnOnlineHelp, "diagrams"); if (!LicenseTool.FeatureAllowed(DiagramsFeature.Test)) { throw new MissingFeatureError(DiagramsFeature._Name); } btnAddToFavorites.Enabled = file is DiskFile; m_file = file; //cbxStyle.Items.Add(Texts.Get("s_custom")); m_diagram = Diagram.Load(m_file); int index = 0; foreach (var style in DiagramStyleAddonType.Instance.CommonSpace.GetFilteredAddons(RegisterItemUsage.DirectUse)) { if (style.Name == XmlTool.GetRegisterType(m_diagram.Style)) { index = cbxStyle.Items.Count; } cbxStyle.Items.Add(style); } cbxStyle.SelectedIndex = index; m_conn = conn; m_diagram.Dialect = m_conn.Dialect; if (m_conn != null) { m_conn.Connection.Owner = this; m_conn.Connection.BeginOpen(Async.CreateInvokeCallback(m_invoker, OpenedConnection)); } //btnDev.Visible = VersionInfo.IsDevVersion; //if (m_diagram.Tables.Count == 0) //{ // btnEditTables.Checked = true; // btnEditTables_Click(this, EventArgs.Empty); //} labDragAndDrop.Visible = m_diagram.Tables.Count == 0; cbxZoom.Text = "100 %"; propertyFrame1.SelectedObject = m_diagram.Style; //cbxZoom.SelectedIndex = cbxZoom.Items.IndexOf("100 %"); ShowCurrentEntityStyle(); m_diagram.Style.Changed += Style_Changed; m_created = true; }
public override System.Drawing.Bitmap GetImageOverride(ITreeNode node) { if (!LicenseTool.FeatureAllowed(AdvancedJobsFeature.Test)) { return(null); } var jnode = node as JobTreeNode; if (jnode != null) { string file = jnode.FileSystemPath; if (JobPlanner.Instance.Connection.JobFileScheduled(file)) { return(StdIcons.clock); } return(null); } return(null); }
public override ITreeNode FromFile(ITreeNode parent, string file) { if (!LicenseTool.FeatureAllowed(ApplicationBuyilderFeature.Test)) { return(null); } string fn = file.ToLower(); if (fn.EndsWith(".app")) { try { return(new ApplicationTreeNode(parent, file)); } catch (Exception) { return(null); } } return(null); }