private void SourceDiscoveryPlugin_GroupOnline(object sender, GroupEventArgs e) { if (this.InvokeRequired) { this.Invoke(new EventHandler <GroupEventArgs>(SourceDiscoveryPlugin_GroupOnline), new object[] { sender, e }); return; } Debug.WriteLine("SourceDiscoveryPlugin_GroupOnline"); if (e.Group.Name.Equals(FavoriteServer.ServerIP)) { LoadFavorites(); } try { tvServerList.BeginUpdate(); AddNode(CreateGroupNode(e.Group)); } catch (Exception exc) { ErrorLogger.DumpToDebug(exc); } finally { tvServerList.EndUpdate(); } }
private void uebContenedor_GroupClick(object sender, GroupEventArgs e) { this.ItemContenedor = (ItemContenedor)uebContenedor.ActiveGroup.Tag; this.MostrarItemContenedor(); this.GroupActive = uebContenedor.ActiveGroup; ubAñadirModificar.Text = "Modificar"; }
private void uc_UpdateUserGroupRequest(object sender, GroupEventArgs e) { try { string result = string.Empty; Boolean updateSuccess = app.LineBLL.SendUserGroupUpdateRequest( e.grp_id, e.funcCloseSystem, e.funcSystemControlMode, e.funcLogin, e.funcAccountManagement, e.funcVehicleManagement, e.funcTransferManagement, e.funcMTLMTSMaintenance, e.funcPortMaintenance, e.funcDebug, e.funcAdvancedSetting, out result); if (updateSuccess) { TipMessage_Type_Light.Show("Succeed", "Update Success.", BCAppConstants.INFO_MSG); Refresh(TabItem_GA, null); } else { TipMessage_Type_Light.Show("Failure", "Update Failed.", BCAppConstants.INFO_MSG); } } catch (Exception ex) { logger.Error(ex, "Exception"); } }
/// <summary> /// Handle expanding and collapsing of Group items by updating database with current state for that item. /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ultraExplorerBar1_GroupExpanded(object sender, GroupEventArgs e) { string sql = "UPDATE TaskItems SET Expanded=" + e.Group.Expanded.ToString() + " WHERE UniqueName='" + e.Group.Key + "';"; VWA4Common.DB.Update(sql); }
/// <summary> /// Will raise a Groups event /// </summary> /// <param name="e">The event arguments that should be passed</param> protected virtual void OnRaiseRetreivedGroupsItemsEvent(GroupEventArgs e) { EventHandler <GroupEventArgs> handler = RaiseRetreivedGroupItems; if (handler != null) { handler(this, e); } }
void ExplorerBar_SelectedGroupChanged(object sender, GroupEventArgs e) { try { WfShowFlowByAdo01(e.Group.Key); } catch (Exception ex) { WfShowErrorMsg(ex.Message); } }
private void plugin_GroupDoubleClick(IMuteLegend legend, GroupEventArgs e) { var group = legend.Groups.ItemByHandle(e.GroupHandle); if (group != null) { if (_context.Container.Run <LegendGroupPresenter, ILegendGroup>(group)) { legend.Redraw(); } } }
public void OnGroupStateChanged(object sender, GroupEventArgs e) { if (e.Group.State == CalculateState.Calculating) { this.m_CurveFrm.Invoke(new NoArgDelegate(this.m_CurveFrm.Reset)); this.SetFormVisible(true); } else if ((e.Group.State == CalculateState.SuccessfulEnd) || (e.Group.State == CalculateState.FailedEnd)) { this.m_CurveFrm.Suspended(); } }
void accountTree_GroupNodeSelectedEvent(object sender, GroupEventArgs e) { try { //get the top form MainForm mainform = this.TopLevelControl as MainForm; if (mainform != null) { mainform.AccountGroupNodeSelected(e.Accounts, e.Group); } } catch (Exception ex) { Program.ShowMessageBox("FrmAccountManager", ex); } }
void accountTree_OpenGroupConfigEvent(object sender, GroupEventArgs e) { try { //get the top form MainForm mainform = this.TopLevelControl as MainForm; if (mainform != null) { mainform.OpenGroupConfigFile(e.Group); } } catch (Exception ex) { Program.ShowMessageBox("FrmAccountManager", ex); } }
private void administrationExplorerBar_ActiveGroupChanged(object sender, GroupEventArgs e) { e.Group.Expanded = true; if (e.Group.Items.Count > 0) { try { e.Group.Items[0].Active = true; } catch (Exception) { if (activeGroupName != "") { DisplayGroup(e.Group.Key); } } } }
private void SourceDiscoveryPlugin_GroupChanged(object sender, GroupEventArgs e) { if (this.InvokeRequired) { this.Invoke(new EventHandler <GroupEventArgs>(SourceDiscoveryPlugin_GroupChanged), new object[] { sender, e }); return; } Debug.WriteLine("SourceDiscoveryPlugin_GroupInfoChanged"); try { tvServerList.BeginUpdate(); SourceDiscoveryGroup group = e.Group; if (group != null) { String name = group.Name; if (name != null) { TreeNode node = FindTreeNode(name); if (node != null) { expandedState.Clear(); CacheExpansion(node); TreeNode newNode = CreateGroupNode(group); RemoveNode(node); InsertNode(newNode, node.Index); ApplyCachedExpansion(newNode); } } } } catch (Exception exc) { ErrorLogger.DumpToDebug(exc); } finally { tvServerList.EndUpdate(); } }
private string ConvertToDisplayName(GroupEventArgs args) { if (args.Value.SizeInBit < 8) { return args.Value.Value[0].ToString(); } var hex = ByteArrayToString(args.Value.Value); var provider = CultureInfo.InvariantCulture; if (int.TryParse(hex, NumberStyles.HexNumber, provider, out int intValue)) { if (args.Value.Value.Length == 2) { return (intValue / 100).ToString("n2"); } return intValue.ToString(); } else { return Convert.ToHexString(args.Value.Value); } }
private void LegendGroupRemoved(object sender, GroupEventArgs e) { _broadcaster.BroadcastEvent(p => p.GroupRemoved_, sender as IMuteLegend, e); }
private void LegendGroupDoubleClick(object sender, GroupEventArgs e) { _broadcaster.BroadcastEvent(p => p.GroupDoubleClick_, sender as IMuteLegend, e); }
private void gridGroupingControl1_GroupExpanded(object sender, GroupEventArgs e) { GridCaptionRow gcr = (GridCaptionRow)e.Group.Caption.CaptionRows[0]; gcr.Appearance.GroupCaptionPlusMinusCell.CellValue = Image.FromFile(Syncfusion.Windows.Forms.WinFormsUtils.FindFile("res", "minus.png")); }
public void OnGroupNameChanged(object sender, GroupEventArgs e) { this.RenameGroupNode(e.Group); }
public void OnGroupDeleted(object sender, GroupEventArgs e) { this.RemoveGroupNode(e.Group); }
public void OnGroupAdded(object sender, GroupEventArgs e) { this.AddGroupNode(e.Group); }
protected void CollectionViewModel_CustomGroupFromSelection(object sender, GroupEventArgs <TEntity> e) { ViewModel.NewGroupFromSelection(e.Entities); }
private void ultraExplorerBar1_GroupClick(object sender, GroupEventArgs e) { UltraExplorerBarGroup anGroup = e.Group; mGroupItemTag tag = (mGroupItemTag)anGroup.Tag; string sql = ""; try { // First need to make sure the user can change this Group if (VWA4Common.GlobalSettings.IsSuper || VWA4Common.GlobalSettings.IsLogged) { if (anGroup.Items.Count == 0) { if (MessageBox.Show("No Tasks under this Group - Remove this Group permanently from the Task Bar?", "No Tasks in Group", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { // Delete the Group sql = "DELETE FROM TaskItems WHERE ID=" + tag.ID + ";"; VWA4Common.DB.Delete(sql); /// Update the local Taskbar LoadTaskBarData(); /// Update the real Taskbar // UCTaskList is listening to week start event, so cause it to fire & reload trackerDetector.FireWeekStart(); return; } } // If we get here, user just wants to rename the Group /// allow the current user to rename this Group /// Get current enabled setting sql = "SELECT * FROM TaskItems WHERE (ParentID = 0) AND UniqueName = '" + e.Group.Key + "';"; DataTable dtGroups = VWA4Common.DB.Retrieve(sql); DataRow irow = dtGroups.Rows[0]; bool enablesetting = bool.Parse(irow["Enabled"].ToString()); int grpID = int.Parse(irow["ID"].ToString()); /// Text was clicked, so change the name VWA4Common.DialogGet1LineofText dtb = new VWA4Common.DialogGet1LineofText( "Please type in the new Task Group Name below:", e.Group.Text, "Change Task Group Name", enablesetting, "Show Group in Task Bar"); if (dtb.ShowDialog() == DialogResult.OK) { e.Group.Text = dtb.sNewText; bool grpenabled = dtb.bNewEnabled; dtb.Dispose(); if (grpenabled) { e.Group.Settings.AppearancesSmall.Appearance.FontData.Strikeout = Infragistics.Win.DefaultableBoolean.False; } else { e.Group.Settings.AppearancesSmall.Appearance.FontData.Strikeout = Infragistics.Win.DefaultableBoolean.True; } // Update database with new name sql = "UPDATE TaskItems SET DisplayName = '" + e.Group.Text + "', Uniquename = '" + e.Group.Text.ToLower() + "', Enabled = " + grpenabled.ToString() + " WHERE ID = " + grpID.ToString() + ";"; VWA4Common.DB.Update(sql); if (!grpenabled) { sql = "UPDATE TaskItems SET Enabled = false WHERE ParentID = " + grpID.ToString() + ";"; VWA4Common.DB.Update(sql); } /// Update the local Taskbar LoadTaskBarData(); /// Update the real Taskbar // UCTaskList is listening to week start event, so cause it to fire & reload trackerDetector.FireWeekStart(); } } else { /// disallow the current user from checking or unchecking this Group } } finally { LoadTaskBarData(); } }
private void HandleGroupEvent(object sender, GroupEventArgs e) { _lastEventGroup = e.GroupHeader; }
public void OnGroupDeleted(object sender, GroupEventArgs e) { this.DeleteGroupLegend(e.Group); }
private void OnGroupMessageReceived(object sender, GroupEventArgs e) { Telegramms.Add(new Telegramm(e, DateTime.UtcNow)); }
protected async void GroupsReadyHandler(object sender, GroupEventArgs e) { await DiscordRebuildChannels(); }
public void OnGroupStylesChanged(object sender, GroupEventArgs e) { this.RefreshGroupNode(e.Group); }
private void gridGroupingControl1_GroupExpanded(object sender, GroupEventArgs e) { if (collapsedGroups.Contains(e.Group.Category.ToString())) collapsedGroups.Remove(e.Group.Category.ToString()); }
public Telegramm(GroupEventArgs args, DateTime timeStamp) { Args = args; TimeStamp = timeStamp; DisplayNameValue = ConvertToDisplayName(args); }
private void InvokeEventHandler(EventHandler<GroupEventArgs> handler, ISimulationGroup group) { if (handler != null) { GroupEventArgs e = new GroupEventArgs(group); handler(this, e); } }