Lots of updates
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace PWAPPv2.Source.DataObjects
|
||||
{
|
||||
abstract class ComboBoxData
|
||||
{
|
||||
protected ComboBox Box;
|
||||
|
||||
public ComboBoxData(ComboBox box)
|
||||
{
|
||||
Box = box;
|
||||
}
|
||||
|
||||
public void Add(string content)
|
||||
{
|
||||
Box.Items.Add(content);
|
||||
}
|
||||
|
||||
public string GetSelectedData()
|
||||
{
|
||||
return Box.SelectedItem.ToString();
|
||||
}
|
||||
|
||||
public abstract void Update();
|
||||
|
||||
public abstract int GetSelectedIndex(string content);
|
||||
|
||||
public abstract int GetSelectedID();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user