示例#1
0
文件: Items.cs 项目: rafek/SyncFx
        private void menuItemNewItem_Click(object sender, EventArgs e)
        {
            var newItemForm = new AddEditItem {Text = "Add Item", IsNewItem = true, ListId = this.ListId};
            newItemForm.ShowDialog();

            RefreshItems();
        }
示例#2
0
        private void menuItemNewItem_Click(object sender, EventArgs e)
        {
            var newItemForm = new AddEditItem {
                Text = "Add Item", IsNewItem = true, ListId = this.ListId
            };

            newItemForm.ShowDialog();

            RefreshItems();
        }
示例#3
0
        private void menuItemEdit_Click(object sender, EventArgs e)
        {
            if (null == ListBoxItems.SelectedItem)
            {
                return;
            }

            var newItemForm = new AddEditItem
            {
                Text      = "Edit Item",
                IsNewItem = false,
                Item      = ListBoxItems.SelectedItem as Item,
                ListId    = this.ListId
            };

            newItemForm.ShowDialog();

            RefreshItems();
        }
示例#4
0
文件: Items.cs 项目: rafek/SyncFx
        private void menuItemEdit_Click(object sender, EventArgs e)
        {
            if (null == ListBoxItems.SelectedItem)
            {
                return;
            }

            var newItemForm = new AddEditItem
                                  {
                                      Text = "Edit Item",
                                      IsNewItem = false,
                                      Item = ListBoxItems.SelectedItem as Item,
                                      ListId = this.ListId
                                  };

            newItemForm.ShowDialog();

            RefreshItems();
        }