コード例 #1
0
 protected void ListBox3_ItemDataBound(object sender, ListBoxItemEventArgs e)
 {
     if (e.Item.Value == "AROUT" || e.Item.Value == "BLONP" || e.Item.Value == "BOLID")
     {
         e.Item.Selected = true;
     }
 }
コード例 #2
0
ファイル: SlideBar.cs プロジェクト: iCSJ/WebApi
 public SlideBar()
 {
     ToggleCommand = new RoutedCommand("ToggleOpen", typeof(SlideBar));
     initCommand();
     Loaded            += OnLoaded;
     MouseLeftButtonUp += (o, a) =>
     {
         ListBoxItemEventArgs arg      = new ListBoxItemEventArgs(ItemClickEvent, this);
         SlideBar             slideBar = (SlideBar)o;
         if (null == slideBar)
         {
             return;
         }
         ListBoxItem listItem = UITool.GetElementUnderMouse <ListBoxItem>();
         if (null == listItem)
         {
             return;
         }
         arg.SlideBar = slideBar;
         arg.Item     = listItem;
         arg.Index    = slideBar.ItemContainerGenerator.IndexFromContainer(listItem);
         arg.Data     = listItem.DataContext;
         IsOpened     = false;
         RaiseEvent(arg);
     };
 }
コード例 #3
0
 protected void ListBox3_ItemDataBound(object sender, ListBoxItemEventArgs e)
 {
     if (e.Item.Value == "AROUT" || e.Item.Value == "BLONP" || e.Item.Value == "BOLID")
     {
         e.Item.Selected = true;
     }
 }
コード例 #4
0
    protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs  e)
    {
        Literal container1 = e.Item.FindControl("Container1") as Literal;
        Literal container2 = e.Item.FindControl("Container2") as Literal;
        Literal container3 = e.Item.FindControl("Container3") as Literal;

        string details = "<br /><br />";

        details += "<b>Supplier ID</b>: " + container1.Text;
        details += "<br />";
        details += "<b>Company Name</b>: " + container2.Text;
        details += "<br />";
        details += "<b>City</b>: " + container3.Text;

        Details.Text = details;
    }
コード例 #5
0
    protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e)
    {
        Literal container1 = e.Item.FindControl("Container1") as Literal;
        Literal container2 = e.Item.FindControl("Container2") as Literal;
        Literal container3 = e.Item.FindControl("Container3") as Literal;

        string details = "<br /><br />";

        details += "<b>Supplier ID</b>: " + container1.Text;
        details += "<br />";
        details += "<b>Company Name</b>: " + container2.Text;
        details += "<br />";
        details += "<b>City</b>: " + container3.Text;

        Details.Text = details;
    }
コード例 #6
0
        void lsbDropbox_ItemClick(object sender, ListBoxItemEventArgs e)
        {
            //if a file is selected deselect it and reselect the folder
            if (!_selectedItem.Is_Dir)
            {
                _selectedItem = _selectedItem.Parent;
            }

            var selected = e.Item as MetaData;

            if (selected.Is_Dir)
            {
                Host.Cursor = Cursors.WaitCursor;
                //hide file buttons
                fileButtonPanel.Hide();
                //Get the selected folders contents
                var newSelected = Form1.Instance.DropBox.GetItems(selected);
                if (newSelected == null)
                {
                    Host.Cursor = Cursors.Default;
                    MessageDialog.Show("Failed to Get Dropbox Folder" + Environment.NewLine + "Check Data Connection.", null, "OK");
                }
                else
                {
                    header.BackButton.Text       = "Up";
                    newSelected.Parent           = _selectedItem;
                    _selectedItem                = newSelected;
                    lsbDropbox.Items             = ListHelpers.MakeDirList(_selectedItem);
                    lsbDropbox.SelectedItemIndex = -1;
                    header.Title = _selectedItem.Name;
                    Host.Cursor  = Cursors.Default;
                }
            }
            else
            {
                selected.Parent = _selectedItem;
                _selectedItem   = selected;

                fileButtonPanel.Show(ShowTransition.FromBottom);
            }
        }
コード例 #7
0
 void lsbFolders_FolderSelected(object sender, ListBoxItemEventArgs e)
 {
     if (!Syncer.Instance.IsSyncing)
     {
         SelectedFolder = e.Item as ItemViewModel;
         //Check if the folder exists
         if (!Directory.Exists(SelectedFolder.Path))
         {
             var syncFolderMsgBox = new MessageDialog();
             syncFolderMsgBox.Message    = string.Format("Folder No Longer exists{0}Remove From List?", Environment.NewLine);
             syncFolderMsgBox.OkText     = "Yes";
             syncFolderMsgBox.CancelText = "No";
             syncFolderMsgBox.Result    += new EventHandler <Fluid.Classes.DialogEventArgs>(syncFolderMsgBox_Result);
             syncFolderMsgBox.Show(ShowTransition.FromBottom);
         }
         else
         {
             SelectFolder(sender, e);
         }
     }
 }
コード例 #8
0
 protected void ComboBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e)
 {
     SqlDataSource2.SelectParameters[0].DefaultValue = e.Item.Value;
     SuperForm1.DefaultMode = DetailsViewMode.Edit;
     SuperForm1.DataBind();
 }
コード例 #9
0
 protected void ListBox1_ItemDataBound(object sender, ListBoxItemEventArgs e)
 {
     e.Item.ImageUrl = GetCountryFlag(DataBinder.Eval(e.Item.DataItem, "Country").ToString());
 }
コード例 #10
0
 protected void ListBox1_ItemDataBound(object sender, ListBoxItemEventArgs e)
 {
     e.Item.ToolTip = e.Item.Text;
 }
コード例 #11
0
 protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e)
 {
     SuperForm1.FolderStyle = "styles/" + e.Item.Value;
     SuperForm1.InterfaceFolderStyle = "../Interface/styles/" + e.Item.Value;
     SuperForm1.DataBind();
 }
コード例 #12
0
 protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e)
 {
     EventLogger.Text = "<br /><br /><b>The selection has been changed to:</b> " + e.Item.Text;
 }
コード例 #13
0
 protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e)
 {
     Details.Text = "<br /><br /><br /><b>" + e.Item.Text + "</b> has been selected.<br />";
 }
コード例 #14
0
 protected void ListBox1_ItemDataBound(object sender, ListBoxItemEventArgs e)
 {
     e.Item.ImageUrl = GetCountryFlag(DataBinder.Eval(e.Item.DataItem, "Country").ToString());
 }
コード例 #15
0
 protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e)
 {
     Details.Text = "<br /><br /><br /><b>" + e.Item.Text + "</b> has been selected.<br />";
 }
コード例 #16
0
 protected void ListBox1_ItemDataBound(object sender, ListBoxItemEventArgs e)
 {
     e.Item.ImageUrl = "resources/images/products/" + DataBinder.Eval(e.Item.DataItem, "ImageName");
 }
コード例 #17
0
 protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e)
 {
     ListBox1.FolderStyle = "styles/" + e.Item.Value;
 }
コード例 #18
0
 protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e)
 {
     SuperForm1.FolderStyle          = "styles/" + e.Item.Value;
     SuperForm1.InterfaceFolderStyle = "../Interface/styles/" + e.Item.Value;
     SuperForm1.DataBind();
 }
コード例 #19
0
ファイル: IPPhonePage.cs プロジェクト: WeDoCrm/misc
        private void DemoCheckedListBox_ItemCheckStateChanged(object sender, ListBoxItemEventArgs e)
        {
            AddEventsLogMessage("CheckedListBox: Item Check State Changed");

            UpdateListBoxCheckedItemIndicesTextBox();
        }
コード例 #20
0
ファイル: KeyPhonePage.cs プロジェクト: WeDoCrm/misc
        private void DemoCheckedListBox_ItemCheckStateChanged(object sender, ListBoxItemEventArgs e)
        {
            AddEventsLogMessage("CheckedListBox: Item Check State Changed");

            UpdateListBoxCheckedItemIndicesTextBox();
        }
コード例 #21
0
 protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e)
 {
     ListBox1.FolderStyle = "styles/" + e.Item.Value;
 }
コード例 #22
0
 protected void ListBox1_ItemDataBound(object sender, ListBoxItemEventArgs e)
 {
     e.Item.ToolTip = e.Item.Text;
 }
コード例 #23
0
 protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e)
 {
     var cos = "<br /><br /><b>The selection has been changed to:</b> " + e.Item.Text;
 }
コード例 #24
0
 protected void ListBox1_ItemDataBound(object sender, ListBoxItemEventArgs e)
 {
     e.Item.ImageUrl = "resources/images/products/" + DataBinder.Eval(e.Item.DataItem, "ImageName");
 }