public static ViewSingleStateDialog CreateSingleStateView(Window parent, State state) { ViewSingleStateDialog stateView = new ViewSingleStateDialog(parent); stateView.Title = "Edit State"; stateView.Name = state.Name; stateView.ColorRed = state.ColorRed; stateView.ColorGreen = state.ColorGreen; stateView.ColorBlue = state.ColorBlue; stateView.BindStateColor(); if (state.IsMapped) { stateView.MappingID = state.MappingID; } else { stateView.IsMapped = false; } return stateView; }
public static ViewSingleStateDialog CreateSingleStateView(Window parent) { ViewSingleStateDialog stateView = new ViewSingleStateDialog(parent); stateView.Title = "New State"; return stateView; }