//新增模式 public PoseCombinationSelect(PresentationModel model, Window window) { _presentationModel = model; _window = window; _isEdit = false; InitializeComponent(); }
static void Main() { Model model = new Model(); PresentationModel presentationModel = new PresentationModel(model); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new EasyControl(presentationModel)); }
public WindowAdd(PresentationModel presentationModel, Window window) { InitializeComponent(); _presentationModel = presentationModel; _window = window; _nameTextBox.Text = _window.Name; _imageTextBox.Text = _window.GetImagePath(); _isEdit = true; }
public WindowDetail(PresentationModel model, Window window) { InitializeComponent(); _presentationModel = model; _window = window; _modePictureBox.Invalidate(); BindingSource source = new BindingSource(window.GetPoseCollection(), null); _poseCombinationGridView.DataSource = source; Text = window.Name; InitializeGridView(); }
public EasyControl(PresentationModel model) { InitializeComponent(); _presentationModel = model; _presentationModel.easyControlLoad("Save.xml"); BindingSource source = new BindingSource(_presentationModel.GetWindowList(), null); _windowGridView.DataSource = source; // must be last line InitializeGridView(); }
//編輯模式 public PoseCombinationSelect(PresentationModel model, Window window, int editIndex) { _presentationModel = model; _window = window; _isEdit = true; _editIndex = editIndex; InitializeComponent(); InitailizePoseCombination(window.GetPoseCombination(editIndex)); CheckIsContinue(); _posePictureBox.Invalidate(); _keyPictureBox.Invalidate(); }
public WindowAdd(PresentationModel presentationModel) { InitializeComponent(); _presentationModel = presentationModel; _isEdit = false; }