コード例 #1
0
        public AddOrEditDirectionsView(string selectedDirectionName, int directIndex)
        {
            InitializeComponent();
            fullPick();
            typePick();
            index = directIndex;
            Direction selected = InfoStore.getDirectionByName(selectedDirectionName);

            pckFull.SelectedItem = selected.Full.ToString();
            pckType.SelectedItem = selected.Type.ToString();
            txtName.Text         = selected.Name;
            txtXCoord.Text       = selected.XCoord.ToString();
            txtYCoord.Text       = selected.YCoord.ToString();
        }