Example #1
0
        private void formatHostListItem(ListControlConvertEventArgs e)
        {
            HostComboBoxItem item = (HostComboBoxItem)(e.ListItem);

            e.Value = item.Host;
        }
Example #2
0
 private void SelectFile_Format(object sender, ListControlConvertEventArgs e)
 {
     e.Value = Path.GetFileNameWithoutExtension((string)e.Value);
 }
Example #3
0
 private void ListBox_Format(object sender, ListControlConvertEventArgs e)
 {
     OnFormat(e);
 }
Example #4
0
        private void ddlClient_Format(object sender, ListControlConvertEventArgs e)
        {
            DataRow r = ((DataRowView)e.ListItem).Row;

            e.Value = r["ClientLname"] + " , " + r["ClientFname"];
        }
Example #5
0
        private void checkedListBox1_Format(object sender, ListControlConvertEventArgs e)
        {
            ISpectraContainer container = (ISpectraContainer)e.ListItem;

            e.Value = String.Format("{0} ({1})", container.Name, container.Model.Name);
        }
        private void ddlManagedBy_Format(object sender, ListControlConvertEventArgs e)
        {
            DataRow r = ((DataRowView)e.ListItem).Row;

            e.Value = r["StaffNumber"] + " , " + r["StaffLname"] + " , " + r["StaffFname"];
        }
        private void Interpreter_Format(object sender, ListControlConvertEventArgs e)
        {
            var factory = e.ListItem as IPythonInterpreterFactory;

            e.Value = factory?.Configuration?.Description ?? e.ListItem?.ToString() ?? "-";
        }
Example #8
0
        private void listBox_RemoteOnly_Format(object sender, ListControlConvertEventArgs e)
        {
            var item = e.ListItem as FormMatch.MatchItem;

            e.Value = item.remote.path;
        }
        private void comboBox2_Format(object sender, ListControlConvertEventArgs e)
        {
            PacienteController pc = new PacienteController();

            e.Value = pc.search("id", e.Value.ToString())[0].nome;
        }
Example #10
0
 private void dropDownListBox_Format(object sender, ListControlConvertEventArgs e)
 {
     this.multiLineComboBox._RaiseFormat(e);
 }
        private void cmbNomAgence_Format(object sender, ListControlConvertEventArgs e)
        {
            var itemAFormatter = (e.ListItem as Modele.vueSomAgence);

            e.Value = itemAFormatter.noAgence + " / " + itemAFormatter.nom;
        }
        private void _launchModeCombo_Format(object sender, ListControlConvertEventArgs e)
        {
            var launcher = (LauncherInfo)e.ListItem;

            e.Value = launcher.DisplayName;
        }
 private void _listBox_Format(object sender, ListControlConvertEventArgs e)
 {
     e.Value = FormatItem(e.ListItem);
 }
Example #14
0
        private static void formatProjectsListItem(ListControlConvertEventArgs e)
        {
            Project item = (Project)(e.ListItem);

            e.Value = item.Path_With_Namespace;
        }
 private static void smethod_2(object sender, ListControlConvertEventArgs e)
 {
     e.Value = ((Enum99)e.ListItem).smethod_4();
 }
Example #16
0
        private void cboDriver_Format(object sender, ListControlConvertEventArgs e)
        {
            Type type = e.ListItem as Type;

            e.Value = type.Name;
        }
Example #17
0
 private void ListBoxProductList_Format(object sender, ListControlConvertEventArgs e)
 {
     e.Value = GetFormattedProductNameAndPrice((Product)e.ListItem);
 }
 void lc_Format(object sender, ListControlConvertEventArgs e)
 {
     e.Value = "Monkey!";
 }
Example #19
0
 private void comboProfile_Format(object sender, ListControlConvertEventArgs e)
 {
     e.Value = ((ScanProfile)e.ListItem).DisplayName;
 }
Example #20
0
 private void cmbYear_Format(object sender, ListControlConvertEventArgs e)
 {
     e.Value = GeneralUtils.ToJNum((int)e.Value % 1000);
 }
Example #21
0
        private void ddlProperty_Format(object sender, ListControlConvertEventArgs e)
        {
            DataRow r = ((DataRowView)e.ListItem).Row;

            e.Value = r["PropertyStreet"] + " , " + r["PropertyCity"];
        }
 private void ComboBoxIgrac_Format(object sender, ListControlConvertEventArgs e)
 {
     e.Value = ((Statistika)e.ListItem).Igrac.ToString();
 }
Example #23
0
 private void cbVisualizers_Format(object sender, ListControlConvertEventArgs e)
 {
     e.Value = ((IJsonViewerPlugin)e.ListItem).DisplayName;
 }
 private void ComboBoxUtakmica_Format(object sender, ListControlConvertEventArgs e)
 {
     e.Value = "Protivnik: " + ((Utakmica)e.ListItem).ProtivnickiKlub.NazivKluba;
 }
Example #25
0
 private void ComboBoxFormat(object sender, ListControlConvertEventArgs e)
 {
     //  //string Name = ((InventoryDataSet)e.ListItem).Name;
     //  //string Price = ((InventoryDataSet)e.ListItem).Price;
     //e.Value = Name + " | Price: " + Price;
 }
        private void lstMasraflar_Format(object sender, ListControlConvertEventArgs e)
        {
            Masraf masraf = e.ListItem as Masraf;

            e.Value = string.Format("{0} ({1})", masraf.Baslik, DurumEnumHelper.GetText(masraf.DurumId));
        }
Example #27
0
 protected virtual void OnFormat(ListControlConvertEventArgs e)
 {
     Format?.Invoke(this, e);
 }
        private void cmbMasrafSahibi_Format(object sender, ListControlConvertEventArgs e)
        {
            Personel personel = e.ListItem as Personel;

            e.Value = string.Format("{0} {1}", personel.Adi, personel.Soyadi);
        }
Example #29
0
        private void CallList_Format(object sender, ListControlConvertEventArgs e)
        {
            Call call = e.ListItem as Call;

            e.Value = call.Parent.Name;
        }
Example #30
0
        private static void formatCommitComboboxItem(ListControlConvertEventArgs e)
        {
            CommitComboBoxItem item = (CommitComboBoxItem)(e.ListItem);

            e.Value = item.Text + (item.IsLatest ? " [Latest]" : String.Empty);
        }