コード例 #1
0
 //新增模式
 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;
 }
コード例 #7
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();
 }
コード例 #8
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();
        }
コード例 #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();
        }
コード例 #10
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();
 }
コード例 #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;
 }