private void tsbClone_Click(object sender, EventArgs e) { var query = dockControlBuilder.GetFetchString(false, false); var newconnection = sender == tsmiCloneNewConnection; LogUse(newconnection ? "Clone-Connection" : "Clone"); DuplicateRequested?.Invoke(this, new DuplicateToolArgs(query, newconnection)); }
private void tsbNew_Click(object sender, EventArgs e) { if (sender == tsmiNew) { if (!SaveIfChanged()) { return; } LogUse("New"); dockControlBuilder.Init(null, null, "new", false); return; } var newconnection = sender == tsmiNewNewConnection; LogUse(newconnection ? "New-New-Connection" : "New-New"); DuplicateRequested?.Invoke(this, new DuplicateToolArgs(settings.QueryOptions.NewQueryTemplate, newconnection)); }
public WorkspaceInstallerModulesView() : base() { ToolBoxAvailable = true; Order = 0; Title = "Installer Modules"; Icon = null; designer.DuplicateToolStripButton.Click += (s_, e_) => DuplicateRequested?.Invoke(this, EventArgs.Empty); designer.DeleteToolStripButton.Click += (s_, e_) => DeleteRequested?.Invoke(this, EventArgs.Empty); designer.MoveUpToolStripButton.Click += (s_, e_) => MoveUpRequested?.Invoke(this, EventArgs.Empty); designer.MoveDownToolStripButton.Click += (s_, e_) => MoveDownRequested?.Invoke(this, EventArgs.Empty); designer.RefreshToolStripButton.Click += (s_, e_) => RefreshRequested?.Invoke(this, EventArgs.Empty); designer.InstallAllToolStripButton.Click += (s_, e_) => ProceedRequested?.Invoke(this, EventArgs.Empty); designer.DataGridView1.SelectionChanged += DataGridView_SelectionChanged; designer.DataGridView1.CellPainting += DataGridView_CellPainting; designer.DataGridView1.CellContentClick += DataGridView_CellContentClick; designer.SingleClickInstallButtonTimer.Tick += SingleClickInstallButtonTimer_Tick; designer.DataGridView1.CellContentDoubleClick += DataGridView_CellContentDoubleClick; }
private void tsbDuplicate_Click(object sender, EventArgs e) { DuplicateRequested?.Invoke(this, new DuplicateToolArgs("My custom state", true)); }