public NewGroupDlg(IPlugInContainer container, StandardPage parentPage,Hostinfo hn, IPlugIn plugin) : base(container, parentPage) { InitializeComponent(); // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); this.lvMembers.ListViewItemSorter = lvwColumnSorter; this.ButtonCancel.Text = "Cancel"; this.ButtonOK.Text = "Create"; this.SetAllValueChangedHandlers(this); localParent = (LUGPage)parentPage; if (localParent == null) { throw new ArgumentException("NewGroupDlg constructor: (LUGPage) parentPage == null"); } this._hn = hn; this._plugin = (LUGPlugIn)plugin; ((EditDialog)this).btnApply.Visible = false; users = new Hashtable(); this.tbGroupName.Select(); }
public CmdItemInfo(SqlConnection mainConnection) { InitializeComponent(); sqlConnection = mainConnection; listViewColumnSorter = new ListViewColumnSorter(); this.listView1.ListViewItemSorter = listViewColumnSorter; }
private Dictionary<ExchangeGeneratorParameters.MailSize, string> _mailSizeDictionary; // used for storing Mail Size possible values #endregion Fields #region Constructors public Form1() { InitializeComponent(); AddControlsToCollections(); DisplayConnectionPage(); GetCredsFromFileToGui(); _lvwColumnSorter = new ListViewColumnSorter(); lv_AgentsList.ListViewItemSorter = _lvwColumnSorter; lv_ExchangeServers.ListViewItemSorter = _lvwColumnSorter; lv_SQL.ListViewItemSorter = _lvwColumnSorter; lv_AgentsList.Items.Clear(); lv_AgentsList.View = View.Details; lv_ExchangeServers.Items.Clear(); lv_ExchangeServers.View = View.Details; lv_SQL.Items.Clear(); lv_SQL.View = View.Details; lbl_MailSizeNote.Text = "*Mail size value can impact\nCore repository compression.\nRecommended value is 'Small'."; lbl_fillingGenerationDescription.Text = "*Generated files will not be\ndeleted at the end of each cycle."; }
public WindowLister() { InitializeComponent(); this.Icon = System.Drawing.Icon.FromHandle(WinApi.LoadIcon(Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]), WinApi.IDI_APPLICATION)); this.list.ListViewItemSorter = lvwColumnSorter = new ListViewColumnSorter(); this.list.SmallImageList = this.imgList = new ImageList(); }
public ListViewExtended() { sorter = new ListViewColumnSorter(); ListViewItemSorter = sorter; ColumnClick += ListViewExtended_ColumnClick; }
public SortedListView() { this.InitializeComponent(); this.lvwColumnSorter = new ListViewColumnSorter(); base.ListViewItemSorter = this.lvwColumnSorter; base.ColumnClick += new ColumnClickEventHandler(this.SortedListView_ColumnClick); }
public View() { InitializeComponent(); lvwColumnSorter = new ListViewColumnSorter(); this.listView.ListViewItemSorter = lvwColumnSorter; }
public ListaPagamento() { InitializeComponent(); if (this.DesignMode) return; ordenador = new ListViewColumnSorter(); hashItemListaPagamento = new Dictionary<ListViewItem, ListaPagamentoItem>(); lista.ListViewItemSorter = ordenador; Image imagemDinheiro = (Image)global::Apresentação.Resource.dinheiro; imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.Dinheiro.ToString(), (Image) global::Apresentação.Resource.dinheiro); imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.Cheque.ToString(), (Image)global::Apresentação.Resource.cheque1); imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.NotaPromissória.ToString(), (Image)global::Apresentação.Resource.np); imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.Ouro.ToString(), (Image)global::Apresentação.Resource.botão___ouro); imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.Dolar.ToString(), (Image)global::Apresentação.Resource.pagar_em_dólares__pequeno_1); imageList.Images.Add(Entidades.Pagamentos.Pagamento.TipoEnum.Crédito.ToString(), (Image)global::Apresentação.Resource.credito); colContador.Name = "colContador"; colData.Name = "colData"; colValor.Name = "colValor"; colDias.Name = "colDias"; colValorLíquido.Name = "colValorHoje"; colVencimento.Name = "colVencimento"; colProrrogação.Name = "colProrrogação"; colRegistradoPor.Name = "colRegistradoPor"; colPagoNaVenda.Name = "colPagoNaVenda"; colPagaVenda.Name = "colPagaVenda"; colDescrição.Name = "colDescrição"; ordenador.SortColumn = colData.Index; ordenador.OrderOfSort = SortOrder.Descending; }
public ListaExtrato() { InitializeComponent(); lvwColumnSorter = new ListViewColumnSorter(); this.lst.ListViewItemSorter = lvwColumnSorter; }
public MainForm() { InitializeComponent(); columnHeaderFileName.Tag = new TextComparer<SearchFileInfo>(s => Path.GetFileName(s.Path)); columnHeaderDirectory.Tag = new TextComparer<SearchFileInfo>(s => Path.GetDirectoryName(s.Path)); columnHeaderModifyDate.Tag = new DateTimeComparer<SearchFileInfo>(s => s.LastWriteTime); columnHeaderSize.Tag = new Int64Comparer<SearchFileInfo>(s => s.Length); columnHeaderSearchTextHits.Tag = new TextComparer<SearchFileInfo>(s => s.SearchTexts); // Create an instance of a ListView column sorter and assign it to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); lvwColumnSorter.CompareItems += new EventHandler<ListViewColumnSorterCompareEventArgs>(lvwColumnSorter_CompareItems); this.listViewResults.ListViewItemSorter = lvwColumnSorter; searchEngine = new SearchEngine(); searchEngine.SearchingPath += new EventHandler<SearchEventArgs>(SearchEngineSearchingPath); searchEngine.SearchFound += new EventHandler<SearchFoundEventArgs>(SearchEngineSearchFound); // Apply settings to combo boxes Properties.Settings.Default.DirectoryItems = ApplyComboBoxSetting(comboBoxDirectory, Properties.Settings.Default.DirectoryItems); Properties.Settings.Default.DirectorySubPaths = ApplyComboBoxSetting(comboBoxDirPath, Properties.Settings.Default.DirectorySubPaths); Properties.Settings.Default.FileNames = ApplyComboBoxSetting(comboBoxFileName, Properties.Settings.Default.FileNames); Properties.Settings.Default.Texts = ApplyComboBoxSetting(comboBoxText, Properties.Settings.Default.Texts); ShowHidePreviewPane(); imageLoader = new FileImageLoader(); imageLoader.LoadCompleted += new EventHandler<LoadCompletedEventArgs>(imageLoader_LoadCompleted); }
public ListViewNF() { _itemSelectionChangedTimer.Interval = 1; _selectedIndexChangedTimer.Interval = 1; _itemSelectionChangedTimer.Tick += (sender, e) => { OnItemSelectionChanged(_itemSelectionChangedEventArgs); _itemSelectionChangedEventArgs = null; }; _selectedIndexChangedTimer.Tick += (sender, e) => { OnSelectedIndexChanged(_selectedIndexChangedEventArgs); _selectedIndexChangedEventArgs = null; }; //Activate double buffering SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true); //Enable the OnNotifyMessage event so we get a chance to filter out // Windows messages before they get to the form's WndProc SetStyle(ControlStyles.EnableNotifyMessage, true); _sorter = new ListViewColumnSorter(); ListViewItemSorter = _sorter; ColumnClick += ListViewNF_ColumnClick; }
public EstimatorTagForm() { InitializeComponent(); m_sorter = new ListViewColumnSorter(); m_list.ListViewItemSorter = m_sorter; m_selected_tags = new List<int>(8); }
public ListaVendaComissão() { InitializeComponent(); lst.Columns.Clear(); lst.Columns.Add(colCódigoVenda); lst.Columns.Add(colData); lst.Columns.Add(colVendedor); lst.Columns.Add(colCliente); lst.Columns.Add(colComissaoPara); lst.Columns.Add(colSetor); lst.Columns.Add(colValorVenda); lst.Columns.Add(colValorComissão); EnumRegra[] tipos = (EnumRegra[]) Enum.GetValues(typeof(EnumRegra)); hashRegraGrupo = new Dictionary<EnumRegra, ListViewGroup>(tipos.Length); lock (hashRegraGrupo) { foreach (EnumRegra tipo in tipos) { ListViewGroup grupo = new ListViewGroup(tipo.ToString()); lst.Groups.Add(grupo); hashRegraGrupo[tipo] = grupo; } } ordenador = new ListViewColumnSorter(); lst.ListViewItemSorter = ordenador; }
public UsersForm(MainForm mf) { this.mf = mf; InitializeComponent(); lvwColumnSorter = new ListViewColumnSorter(); this.lvUsersList.ListViewItemSorter = lvwColumnSorter; }
public IndexManager() { InitializeComponent(); //创建一个ListView排序类的对象,并设置listView1的排序器 this.lvwColumnSorter = new ListViewColumnSorter(); this.lvwFIn.ListViewItemSorter = this.lvwColumnSorter; this.lvwFOut.ListViewItemSorter = this.lvwColumnSorter; this.lvwMIn.ListViewItemSorter = this.lvwColumnSorter; this.lvwMOut.ListViewItemSorter = this.lvwColumnSorter; this.lvwColumnSorter.Order = SortOrder.Ascending; this.lvwColumnSorter.SortColumn = 0; this.lvwFIn.Sort(); this.lvwFOut.Sort(); this.lvwMIn.Sort(); this.lvwMOut.Sort(); this.folderBrowserDialog.SelectedPath = ""; //GetSystemIcon getIcon = new GetSystemIcon();//获取图标 //加入文件夹图标 this.imgIcon.Images.Add("folder", GetSystemIcon.GetFolderIcon(false)); this.lblWarning.Text = ""; this.InitData();//初始化索引数据 }
public Form1() { InitializeComponent(); lvwColumnSorter = new ListViewColumnSorter(); this.listView1.ListViewItemSorter = lvwColumnSorter; wikiCollection = new WikiCollection(); IncrementPagesLoaded = new IncrementPagesLoadedDelegate(IncrementPagesLoadedMethod); IncrementPagesLoadedByVal = new IncrementPagesLoadedByValDelegate(IncrementPagesLoadedByValMethod); CheckSiteLoaded = new CheckSiteLoadedDelegate(CheckSiteLoadedMethod); CheckTitlesLoaded = new CheckPageTitlesLoadedDelegate(CheckPageTitlesLoadedMethod); CheckTokenized = new CheckTokenizedDelegate(CheckTokenizedMethod); CheckCheckBox4 = new CheckCheckBox4Delegate(CheckCheckBox4Method); CheckCheckBox5 = new CheckCheckBox5Delegate(CheckCheckBox5Method); AddPageText = new AddPageTextDelegate(AddPageTextMethod); UpdateText = new UpdateTextDelegate(UpdateTextMethod); AddClusters = new AddClustersDelegate(AddClustersMethod); //Task.Factory.StartNew(LoadPages); Task.Factory.StartNew(LoadWikipediaXML); /* WikiConnection wiki = new WikiConnection("localhost"); GetPage page = new GetPage(wiki, "", "List of trigonometric identities"); CommandResult result = page.Execute();*/ }
public frmMain() { XMLSettings.WriteDefaultSettings(); XMLSettings.ListenPort = ushort.Parse(XMLSettings.ReadValue("ListenPort")); XMLSettings.AutoListen = bool.Parse(XMLSettings.ReadValue("AutoListen")); XMLSettings.ShowPopup = bool.Parse(XMLSettings.ReadValue("ShowPopup")); XMLSettings.Password = XMLSettings.ReadValue("Password"); // fallback for old settings XMLSettings.UseUPnP = bool.Parse((!string.IsNullOrEmpty(XMLSettings.ReadValue("UseUPnP"))) ? XMLSettings.ReadValue("UseUPnP") : "False"); if (bool.Parse(XMLSettings.ReadValue("ShowToU"))) { using (var frm = new frmTermsOfUse()) { frm.ShowDialog(); } Thread.Sleep(300); } InitializeComponent(); this.Menu = mainMenu; lvwColumnSorter = new ListViewColumnSorter(); lstClients.ListViewItemSorter = lvwColumnSorter; ListViewExtensions.removeDots(lstClients); ListViewExtensions.changeTheme(lstClients); }
public LQTListView() { InitializeComponent(); ListViewColumnSorter _lvwItemComparer = new ListViewColumnSorter(); this.ListViewItemSorter = _lvwItemComparer; this.MouseUp += new MouseEventHandler(LQTListView_MouseUp); this.editTextBox.Size = new System.Drawing.Size(0, 0); this.editTextBox.Location = new System.Drawing.Point(0, 0); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.editTextBox}); this.editTextBox.KeyPress += new KeyPressEventHandler(editTextBox_KeyPress); this.editTextBox.KeyDown +=new KeyEventHandler(editTextBox_KeyDown); this.editTextBox.LostFocus += new EventHandler(editTextBox_LostFocus); this.editTextBox.Font = this.Font; //new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.editTextBox.BackColor = Color.LightYellow; this.editTextBox.BorderStyle = BorderStyle.FixedSingle; this.editTextBox.Text = ""; this.editTextBox.Hide(); this.lnkLabel.Size = new System.Drawing.Size(0, 0); this.lnkLabel.Location = new System.Drawing.Point(0, 0); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.lnkLabel }); this.lnkLabel.Click += new EventHandler(lnkLabel_Click); this.lnkLabel.Font = this.Font; this.lnkLabel.Text = ""; this.lnkLabel.Hide(); }
public Patient_Screen() { InitializeComponent(); if (TCPProcessor.ConnectedToServer) _remote_DataManager = (Patient_Remote_DataManager)Activator.GetObject(typeof(Patient_Remote_DataManager), TCPProcessor.BuildServerRemotingString(8005, "PatientRemoteDataManagerConnection")); _sessionSorter = new ListViewColumnSorter(); this.listViewSessions.ListViewItemSorter = _sessionSorter; listViewSessions.Groups.Add(listViewGroup_New); listViewSessions.Groups.Add(listViewGroup_Scheduled); listViewSessions.Groups.Add(listViewGroup_Completed); _runReviewButtonTimer.Interval = 100; _runReviewButtonTimer.Tick += new EventHandler(_runReviewButtonTimer_Tick); _runReviewButtonTimer.Start(); Create_Edit_Session_Control.Cancel += new Create_Edit_Session_Control.CancelEventHandler(Create_Edit_Session_Control_Cancel); Create_Edit_Session_Control.TaskSelect += new Create_Edit_Session_Control.TaskSelectEventHandler(Create_Edit_Session_Control_TaskSelect); Create_Edit_Session_Control.SetProgressBarValue += new Create_Edit_Session_Control.SetProgressBarValueEventHandler(Create_Edit_Session_Control_SetProgressBarValue); Create_Edit_Session_Control.SelectionStateChanged += new Create_Edit_Session_Control.SelectionStateChangedEventHandler(Create_Edit_Session_Control_SelectionStateChanged); Create_Edit_Session_Control.CreateNewTask += new Create_Edit_Session_Control.CreateNewTaskEventHandler(Create_Edit_Session_Control_CreateNewTask); }
public Patient_Records_Screen() { InitializeComponent(); if (TCPProcessor.ConnectedToServer) _Remote_Data_Manager = (Patient_Remote_DataManager)Activator.GetObject(typeof(Patient_Remote_DataManager), TCPProcessor.BuildServerRemotingString(8005, "PatientRemoteDataManagerConnection")); //Setup the sorter _patientSorter = new ListViewColumnSorter(); this.listViewPatients.ListViewItemSorter = _patientSorter; listViewPatients.Groups.Add(listViewGroup_New); listViewPatients.Groups.Add(listViewGroup_Patients); //Setup background worker events backgroundWorkerSearcher.DoWork += new DoWorkEventHandler(backgroundWorkerSearcher_DoWork); backgroundWorkerSearcher.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorkerSearcher_RunWorkerCompleted); backgroundWorkerLoader.DoWork += new DoWorkEventHandler(backgroundWorkerLoader_DoWork); backgroundWorkerLoader.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorkerLoader_RunWorkerCompleted); //Request an updated patient list and then retreive it _Remote_Data_Manager.ClientRequestUpdatedPatientList(); //Load in the patient data into the open patient list view LoadInPatientData(); }
public Form1() { InitializeComponent(); lvwColumnSorter = new ListViewColumnSorter(); this.listView1.ListViewItemSorter = lvwColumnSorter; OutputClusters = new XElement("Clusters"); wikiCollection = new WikiCollection(); IncrementPagesLoaded = new IncrementPagesLoadedDelegate(IncrementPagesLoadedMethod); IncrementPagesLoadedByVal = new IncrementPagesLoadedByValDelegate(IncrementPagesLoadedByValMethod); CheckSiteLoaded = new CheckSiteLoadedDelegate(CheckSiteLoadedMethod); CheckTitlesLoaded = new CheckPageTitlesLoadedDelegate(CheckPageTitlesLoadedMethod); CheckTokenized = new CheckTokenizedDelegate(CheckTokenizedMethod); CheckCheckBox4 = new CheckCheckBox4Delegate(CheckCheckBox4Method); CheckCheckBox5 = new CheckCheckBox5Delegate(CheckCheckBox5Method); AddPageText = new AddPageTextDelegate(AddPageTextMethod); UpdateText = new UpdateTextDelegate(UpdateTextMethod); AddClusters = new AddClustersDelegate(AddClustersMethod); //Task.Factory.StartNew(LoadPages); Task.Factory.StartNew(LoadWikipediaXML); treeView1.Font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold | FontStyle.Underline); //treeView1.BackColor = Color.Blue; /* WikiConnection wiki = new WikiConnection("localhost"); GetPage page = new GetPage(wiki, "", "List of trigonometric identities"); CommandResult result = page.Execute();*/ }
public static void ListView_ColumnClick(object sender, ColumnClickEventArgs e) { ListView LV = sender as ListView; if (LV == null) { return; } ListViewColumnSorter S = LV.ListViewItemSorter as ListViewColumnSorter; if (S == null) { S = new ListViewColumnSorter(); LV.ListViewItemSorter = S; S.Column = -1; } if (S.Column == e.Column) { S.Order = ((S.Order == SortOrder.Ascending) ? SortOrder.Descending : SortOrder.Ascending); } else { S.Column = e.Column; S.Order = SortOrder.Ascending; } LV.Sort(); }
public fmWCFServerWzd() { InitializeComponent(); FServerData = new TWCFServerData(this); //PrepareWizardService(); lvwColumnSorter = new ListViewColumnSorter(); this.lvSelectedFields.ListViewItemSorter = lvwColumnSorter; }
/// <summary> /// Initializes a new instance of the <see cref="LayananUI"/> class. /// </summary> public LayananUI() { InitializeComponent(); _lvwColumnSorter = new ListViewColumnSorter(); lsvData.ListViewItemSorter = _lvwColumnSorter; cboCopies.SelectedIndex = 0; ShowAll(); }
public frmDeposits(Dictionary<int, Deposit> deposits) { InitializeComponent(); this.deposits = deposits; lvwColumnSorter = new ListViewColumnSorter(); this.listView1.ListViewItemSorter = lvwColumnSorter; drawList(); }
public ExplorerList() { InitializeComponent(); lstviewSorter = new ListViewColumnSorter(); this.explorerListView.ListViewItemSorter = lstviewSorter; prepareListView(); ExListView = this.explorerListView; }
public uscTextChatModerationListcs() { InitializeComponent(); this.m_columnSorter = new ListViewColumnSorter(); this.lsvTextChatModerationList.ListViewItemSorter = this.m_columnSorter; this.cboTextChatModerationLevels.SelectedIndex = 0; }
public UserInfo(SqlConnection mainConnection) { InitializeComponent(); sqlConnection = mainConnection; TechnologyLib technologyLib = new TechnologyLib(sqlConnection); listViewColumnSorter = new ListViewColumnSorter(); this.listView1.ListViewItemSorter = listViewColumnSorter; }
private void listViewSort() { ListViewColumnSorter lvwColumnSorter = new ListViewColumnSorter(); lvwColumnSorter.SortColumn = 0; lvwColumnSorter.Order = SortOrder.Ascending; lvwBreaks.ListViewItemSorter = lvwColumnSorter; lvwBreaks.Sort(); }
public fmSelWCFTableField() { InitializeComponent(); lvwFieldSorter = new ListViewColumnSorter(); lvwTableSorter = new ListViewColumnSorter(); this.lvFields.ListViewItemSorter = lvwFieldSorter; this.lvTable.ListViewItemSorter = lvwTableSorter; }
public ObservatoryFrm() { InitializeComponent(); ExtendControl.DoubleBuffered(listEvent, true); Text = $"{Text} - v{Application.ProductVersion}"; logMonitor = new LogMonitor(); logMonitor.LogEntry += LogEvent; Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); columnSorter = new ListViewColumnSorter(); listEvent.ListViewItemSorter = columnSorter; capiState = Properties.Observatory.Default.UseCapi ? CapiState.Enabled : CapiState.Disabled; CheckCapi(capiState); overlay = new EDOverlay(); if (Properties.Observatory.Default.TTS) { speech = new SpeechSynthesizer(); speech.SetOutputToDefaultAudioDevice(); } try { string releasesResponse; var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.github.com/repos/xjph/EliteObservatory/releases"), Headers = { { "User-Agent", "Xjph/EliteObservatory" } } }; releasesResponse = HttpClient.SendRequest(request).Content.ReadAsStringAsync().Result; if (!string.IsNullOrEmpty(releasesResponse)) { JArray releases = (JArray)JsonConvert.DeserializeObject(releasesResponse, new JsonSerializerSettings() { DateParseHandling = DateParseHandling.None }); foreach (JObject release in releases) { if (release["tag_name"].ToString().CompareTo($"v{Application.ProductVersion}") > 0) { linkUpdate.Enabled = true; linkUpdate.Visible = true; break; } } } } catch (Exception ex) { MessageBox.Show($"Error checking for update: {ex.Message}"); } }
public List <ListViewItem> GetItemGroupSorted(EDeviceState state) { ListViewGroup activeGroup = GetItemGroup(EDeviceState.Active); List <ListViewItem> list = activeGroup.Items.OfType <ListViewItem>().Select(i => i).ToList(); ListViewColumnSorter sorter = m_listDevices.ListViewItemSorter as ListViewColumnSorter; list.Sort((i1, i2) => ListViewColumnSorter.Compare(i1, i2, sorter.SortColumn, sorter.SortOrder)); return(list); }
public FormPlaylist(string name, BDROM bdrom, OnCustomPlaylistFinished func) { InitializeComponent(); textBoxName.Text = name; BDROM = bdrom; OnFinished = func; PlaylistColumnSorter = new ListViewColumnSorter(); listViewPlaylistFiles.ListViewItemSorter = PlaylistColumnSorter; }
private void loadLstPayroll() { try { // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter_lstPayroll = new ListViewColumnSorter(); this.lstPayroll.ListViewItemSorter = lvwColumnSorter_lstPayroll; fillDBCPayroll(); lstPayroll.BeginUpdate(); lstPayroll.Clear(); buildLstPayrollColumns(); int recordCount = 0; foreach (DataRow row in dbcPayroll.getDT().Rows) { ListViewItem listItem = new ListViewItem(row["EmpNameFirst"].ToString() + " " + row["EmpNameLast"].ToString()); listItem.Name = recordCount + "!" + row["EmpAppointID"].ToString(); // index for record in dbConnector + empAppointID listItem.SubItems.Add(row["UnitID"].ToString()); listItem.SubItems.Add(row["EmpTypeDesc"].ToString()); listItem.SubItems.Add(row["EmpAppTypeDesc"].ToString()); listItem.SubItems.Add(row["DeptID"].ToString()); listItem.SubItems.Add(row["FundType"].ToString()); listItem.SubItems.Add(row["FundProjClass"].ToString()); listItem.SubItems.Add(String.Format(nfi, "{0:c}", double.Parse(row["EmpAppointFTCompRate"].ToString()))); listItem.SubItems.Add(String.Format("{0:0.##}", row["EmpAppointTimeBase"].ToString())); listItem.SubItems.Add(String.Format(nfi, "{0:c}", double.Parse(row["EmpAppointSalary"].ToString()))); listItem.SubItems.Add(row["JobCodeID"].ToString()); listItem.SubItems.Add(row["PayrollDateStart"].ToString()); listItem.SubItems.Add(row["PayrollDateEnd"].ToString()); listItem.SubItems.Add(row["EmpAppointPositionNum"].ToString()); listItem.SubItems.Add(row["GLNumber"].ToString()); listItem.SubItems.Add(row["EtracDateStart"].ToString()); listItem.SubItems.Add(row["EtracDateEnd"].ToString()); //SORT COLUMNS listItem.SubItems.Add(UtilityDates.convertFormatedDateToSortableString(row["PayrollDateStart"].ToString())); listItem.SubItems.Add(UtilityDates.convertFormatedDateToSortableString(row["PayrollDateEnd"].ToString())); listItem.SubItems.Add(row["EmpAppointFTCompRate"].ToString().PadLeft(12, '0')); listItem.SubItems.Add(row["EmpAppointSalary"].ToString().PadLeft(12, '0')); listItem.SubItems.Add(row["EmpNameLast"].ToString()); lstPayroll.Items.Add(listItem); recordCount++; // get count of records added to lstPayroll } lstPayroll.EndUpdate(); lblPendingPayrollCount.Text = recordCount.ToString(); } catch (Exception ex) { //MessageBox.Show(ex.ToString()); } }
public DlgEditJob() { PreferenceKey = "JobDlg"; InitializeComponent(); this.Icon = Images.job; // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); this.fixesLV.ListViewItemSorter = lvwColumnSorter; }
public AbsenceAnnouncementUserControl() { InitializeComponent(); _absenceService = new AbsenceService(); _steamUserService = new SteamUserService(); _steamUsers = new List <SteamUser>(); _columnSorter = new ListViewColumnSorter(); AbsenceListView.ListViewItemSorter = _columnSorter; }
public MinidumpListView() : base() { ColumnSorter = new ListViewColumnSorter(); ColumnSorter.Order = SortOrder.Ascending; _filterMenus = new Dictionary <int, ContextMenuStrip>(); this.ListViewItemSorter = ColumnSorter; this.HeaderDropdown += DisplayColumnHeaderDropdown; }
public KeyEmulationEditor(ControlSetDB controlSet) { EditedControlSet = controlSet; InitializeComponent(); lsvKeyRulesSets.Columns.Add("Unique name", 100, HorizontalAlignment.Left); lsvKeyRulesSets.Columns.Add("Key", 80, HorizontalAlignment.Left); lsvKeyRulesSets.Columns.Add("Source", 125, HorizontalAlignment.Left); lsvKeyRulesSets.AllowColumnReorder = true; lsvKeyRulesSets.FullRowSelect = true; lsvKeyRulesSets.View = View.Details; // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); lsvKeyRulesSets.ListViewItemSorter = lvwColumnSorter; foreach (var exectype in Enum.GetValues(typeof(KeySourceTypes))) { cmbSourceType1.Items.Add(exectype.ToString()); cmbSourceType2.Items.Add(exectype.ToString()); cmbSourceType3.Items.Add(exectype.ToString()); } cmbSourceType1.SelectedIndex = 0; cmbSourceType2.SelectedIndex = 0; cmbSourceType3.SelectedIndex = 0; foreach (var item in Enum.GetValues(typeof(KeyCodes))) { cmbKeyStroke1.Items.Add(item.ToString()); cmbKeyStroke2.Items.Add(item.ToString()); } cmbKeyStroke1.SelectedIndex = 0; cmbKeyStroke2.SelectedIndex = 0; foreach (var item in Enum.GetValues(typeof(KeyEmulationAPI))) { cmbKeyAPI.Items.Add(item.ToString()); } cmbKeyAPI.SelectedIndex = 0; foreach (var oper in Enum.GetValues(typeof(KeysOperators))) { cmbCombine1.Items.Add(oper.ToString()); cmbCombine2.Items.Add(oper.ToString()); } cmbCombine1.SelectedIndex = 0; cmbCombine2.SelectedIndex = 0; RefreshListFromKeyStrokeDBs(); }
public MainForm() { InitializeComponent(); listViewColumnSorter = new ListViewColumnSorter(); listViewItemsQueue.ListViewItemSorter = listViewColumnSorter; queueBackgroundWorker = new BackgroundWorker(); queueBackgroundWorker.WorkerReportsProgress = true; queueBackgroundWorker.WorkerSupportsCancellation = true; queueBackgroundWorker.DoWork += queueWorker_DoWork; queueBackgroundWorker.ProgressChanged += queueWorker_ProgressChanged; }
public FrmKeylogger(Client c) { _connectClient = c; _connectClient.Value.FrmKl = this; _path = Path.Combine(Application.StartupPath, "Clients\\" + _connectClient.EndPoint.Address.ToString() + "\\Logs\\"); InitializeComponent(); _lvwColumnSorter = new ListViewColumnSorter(); lstLogs.ListViewItemSorter = _lvwColumnSorter; }
public ListOfMovies() { InitializeComponent(); // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); this.myListView.ListViewItemSorter = lvwColumnSorter; CreateComponents(); PopulateData(); SetUpEventHandlers(); }
public SanityArchiver() { InitializeComponent(); // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); this.listView1.ListViewItemSorter = lvwColumnSorter; ListDrives(); }
public FDrawingLogList() { InitializeComponent(); SetListForm(); timer1.Enabled = true; // Create an instance of a ListView column sorter and assign it ************************MZ // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); //this.listView1.ListViewItemSorter = lvwColumnSorter; }
public void Initialize(DatabaseOperation databaseOperation) { InitializeDictionary(); _databaseOperation = databaseOperation; _listViewColumnSorter = new ListViewColumnSorter(); _lastImportedFiles = new List <string>(); traceFileListView.ListViewItemSorter = _listViewColumnSorter; traceFileDirComboBox.GotFocus += TraceFileDirComboBox_GotFocus; SearchHistoryHandler.LoadItems(traceFileDirComboBox, "RecentListTraceFileDir_Selector"); }
public Empresa_Atividade(int Origin_Value, bool SelecionarAliquota) { InitializeComponent(); OriginValue = Origin_Value; _selecionarAliquota = SelecionarAliquota; lvwColumnSorter = new ListViewColumnSorter(); MainListView.ListViewItemSorter = lvwColumnSorter; tBar.Renderer = new MySR(); Carrega_Lista(); ControlBehaviour(true); bAddNew = false; }
public FilesDetailPage( ) { InitializeComponent(); // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); this.lvFilePage.ListViewItemSorter = lvwColumnSorter; this.picture.Image = FolderOpenIcon.ToBitmap(); }
public Form1() { InitializeComponent(); _x = 0; _y = ActiveForm.Height; // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); this.playerTable.ListViewItemSorter = lvwColumnSorter; }
public IssuesBrowser(string parameters, string comment) { InitializeComponent(); Comment = comment; options = TfsOptionsSerializer.Deserialize(parameters); ColumnHeader idColumnHeader = listViewIssues.Columns.Cast <ColumnHeader>().FirstOrDefault(header => header.Name == "ID"); int idColumnIndex = idColumnHeader == null ? 2 : idColumnHeader.Index; listViewColumnSorter = new ListViewColumnSorter(idColumnIndex); listViewIssues.ListViewItemSorter = listViewColumnSorter; }
private void Form1_Load(object sender, EventArgs e) { VisAllePosteringer(); PrepareControls(); //Sorter til listview lvwColumnSorter = new ListViewColumnSorter(); listPosteringer.ListViewItemSorter = lvwColumnSorter; searchingAllowed = true; //Denne kontrol må ikke flyttes til Controls to defualt funktionen cboxVis.SelectedIndex = 3; }
public Main() { InitializeComponent(); lvwColumnSorter = new ListViewColumnSorter(); this.lv.ListViewItemSorter = lvwColumnSorter; this.lv.Sorting = System.Windows.Forms.SortOrder.Ascending; this.lv.AutoArrange = true; lvwColumnSorter._SortModifier = ListViewColumnSorter.SortModifiers.SortByText; this.Text = "Visual MI " + version; }
public SessionPage() { InitializeComponent(); // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); this.lvSessionPage.ListViewItemSorter = lvwColumnSorter; Icon ic = new Icon(Resources.SharedFolder, 48, 48); this.picture.Image = ic.ToBitmap(); }
public FlickerFreeListView() : base() { SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.ResizeRedraw, true); UpdateStyles(); _listViewColumnSorter = new ListViewColumnSorter(); _listViewColumnSorter.SortColumn = 0; this.ListViewItemSorter = _listViewColumnSorter; this.Sorting = SortOrder.Ascending; }
public Form1() { InitializeComponent(); // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); this.listView1.ListViewItemSorter = lvwColumnSorter; // add new handler for left / right clicks this.listView1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnListViewMouseUp); // Select the item and subitems when selection is made. listView1.FullRowSelect = true; }
public ListEmployeeSalaryBills() { InitializeComponent(); listViewColumnSorter = new ListViewColumnSorter(listView); using (var db = new EmployeesDBContext()) { var employees = db.Employees.ToList(); var bills = db.EmployeeSalaryBills.ToList(); salaryBills = bills; } listView.ItemsSource = salaryBills; }
public SharesPage(FileShareManagerIPlugIn.PluginNodeType nodetype) { InitializeComponent(); // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); this.lvSharePage.ListViewItemSorter = lvwColumnSorter; Icon ic = new Icon(Resources.SharedFolder, 48, 48); this.picture.Image = ic.ToBitmap(); this.nodeType = nodetype; }
//private int Count = 0; public Form1() { InitializeComponent(); DialogService = new DialogService(); FileService = new FileService(); FileOperationService = new FileOperationService(); ViewModel = new FileViewModel(FileList, FileTree, PathTb, FileService, FileOperationService, DialogService); //Cache = new PathHistoryCache(); //Invoker=new CommandManager(); _lvwColumnSorter = new ListViewColumnSorter(); FileList.ListViewItemSorter = _lvwColumnSorter; FileList.ContextMenuStrip = contextMenuStrip1; PrepareData(); }
public BuscarArchivo() { InitializeComponent(); GenerateHashQuery("INIT"); searchStatus = SearchStatus.NEW; serverListReceivedDelegate = new ClientHandler.ServerListReceivedDelegate(EventServerListReceivedResponse); ClientHandler.GetInstance().ServerListReceivedEvent += serverListReceivedDelegate; searchFilesReceivedDelegate = new ClientHandler.SearchFilesReceivedDelegate(OnSearchFilesResultReceived); ClientHandler.GetInstance().SearchFilesReceivedEvent += searchFilesReceivedDelegate; lvwColumnSorter = new ListViewColumnSorter(); listaArchivos.ListViewItemSorter = lvwColumnSorter; }
public ATMLListControl() { InitializeComponent(); lvList.SelectedIndexChanged += lvList_SelectedIndexChanged; lvList.Resize += lvList_Resize; lvList.View = View.Details; lvList.FullRowSelect = true; toolStrip.Renderer = new MyRenderer(); SetButtonstates(); lvwColumnSorter = new ListViewColumnSorter(); lvList.ListViewItemSorter = lvwColumnSorter; lvList.DoubleClick += lvList_DoubleClick; ATMLContext.PropertyChanged += AtmlContextOnPropertyChanged; }
private void CrearListView(string opcion) { lst = new ListView(); lst.View = View.Details; lst.FullRowSelect = true; lst.GridLines = true; lst.MultiSelect = false; lst.ShowItemToolTips = true; //lst.Alignment = ListViewAlignment.SnapToGrid; lst.Dock = DockStyle.Fill; lst.Font = font_verdana; if (opcion == "cliente" || opcion == "actual" || opcion == "buscar" || opcion == "lista_negra") { lst.Columns.Add("ID", 0, HorizontalAlignment.Left); lst.Columns.Add("Nro.", 50, HorizontalAlignment.Center); lst.Columns.Add("Nombre completo", 350, HorizontalAlignment.Left); lst.Columns.Add("Cédula", 150, HorizontalAlignment.Left); if (opcion != "lista_negra") { lst.Columns.Add("Reserv. Activas", 150, HorizontalAlignment.Center); } lst.Columns.Add("Cliente desde", 126, HorizontalAlignment.Left); } else if (opcion == "habitacion") { lst.Columns.Add("IDCliente", 0, HorizontalAlignment.Left); lst.Columns.Add("IDHab", 0, HorizontalAlignment.Left); lst.Columns.Add("Habitación", 100, HorizontalAlignment.Center); lst.Columns.Add("Cliente", 350, HorizontalAlignment.Left); lst.Columns.Add("Cédula", 150, HorizontalAlignment.Left); lst.Columns.Add("Fecha de entrada", 180, HorizontalAlignment.Center); } panel1.Controls.Add(lst); lst.BringToFront(); lst.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lst_MouseDoubleClick); lst.SelectedIndexChanged += new System.EventHandler(this.lst_SelectedIndexChanged); lst.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lst_ColumnClick); lvwColumnSorter = new ListViewColumnSorter(); this.lst.ListViewItemSorter = lvwColumnSorter; }
private void loadLstTransPayees() { lvwColumnSorter = new ListViewColumnSorter(); this.lstTransPayees.ListViewItemSorter = lvwColumnSorter; ArrayList arrNew = new ArrayList(); String[] tmpArray = InfoLoader.loadPayeesByTransType(selectedTransType).Split('\n'); // selectedTransPayeeID = ""; lstTransPayees.BeginUpdate(); lstTransPayees.Clear(); lstTransPayees.Columns.Add("Payee", 120, HorizontalAlignment.Left); lstTransPayees.Columns.Add("_SortPayees", 0, HorizontalAlignment.Left); //Add "All PAYEES" option ListViewItem listItem = new ListViewItem(" ALL PAYEES"); listItem.Name = ""; lstTransPayees.Items.Add(listItem); //Add results from Payee query for (int i = 0; i < tmpArray.Length; i++) { String[] cols = tmpArray[i].Split('\t'); if (cols.Length == 3) //01062016 sort by LastName Harry. { var names = cols[1].TrimEnd().Split(' '); if (cols[2] != "") { string lastName; if (names[names.Length - 1].IndexOf('(') != -1) { lastName = names[names.Length - 2]; } else { lastName = names[names.Length - 1]; } cols[1] = lastName + ", " + cols[1].Replace(lastName, ""); //cols[1] = names[1] + ", " + names[0]; } listItem = new ListViewItem(cols[1]); listItem.Name = cols[0]; lstTransPayees.Items.Add(listItem); } } lstTransPayees.EndUpdate(); }