//新增模式
 public PoseCombinationSelect(PresentationModel model, Window window)
 {
     _presentationModel = model;
     _window = window;
     _isEdit = false;
     InitializeComponent();
 }
예제 #2
0
 //新增模式
 public PoseCombinationSelect(PresentationModel model, Window window)
 {
     _presentationModel = model;
     _window            = window;
     _isEdit            = false;
     InitializeComponent();
 }
예제 #3
0
 static void Main()
 {
     Model model = new Model();
     PresentationModel presentationModel = new PresentationModel(model);
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new EasyControl(presentationModel));
 }
예제 #4
0
 public WindowAdd(PresentationModel presentationModel, Window window)
 {
     InitializeComponent();
     _presentationModel = presentationModel;
     _window            = window;
     _nameTextBox.Text  = _window.Name;
     _imageTextBox.Text = _window.GetImagePath();
     _isEdit            = true;
 }
예제 #5
0
        static void Main()
        {
            Model             model             = new Model();
            PresentationModel presentationModel = new PresentationModel(model);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new EasyControl(presentationModel));
        }
예제 #6
0
 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();
        }
예제 #9
0
        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();
 }
예제 #11
0
 //編輯模式
 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();
 }
예제 #12
0
        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();
        }
예제 #13
0
 public WindowAdd(PresentationModel presentationModel)
 {
     InitializeComponent();
     _presentationModel = presentationModel;
     _isEdit            = false;
 }
예제 #14
0
 public WindowAdd(PresentationModel presentationModel)
 {
     InitializeComponent();
     _presentationModel = presentationModel;
     _isEdit = false;
 }