Пример #1
0
        public WindowEdit(string id = "")
        {
            InitializeComponent();
            ID       = id;
            vieModel = new VieModel_Edit();

            if (ID == "")
            {
                vieModel.Reset();
            }
            else
            {
                vieModel.Query(ID);
            }
            this.DataContext = vieModel;
        }
Пример #2
0
        public WindowEdit(string id = "")
        {
            InitializeComponent();
            ID       = id;
            vieModel = new VieModel_Edit();

            if (ID == "")
            {
                vieModel.Reset();
            }
            else
            {
                vieModel.Query(ID);
            }
            this.DataContext = vieModel;

            this.Height = SystemParameters.PrimaryScreenHeight * 0.6;
            this.Width  = SystemParameters.PrimaryScreenHeight * 0.6 * 800 / 450;
        }
Пример #3
0
        public WindowEdit(string id = "")
        {
            InitializeComponent();
            if (GlobalVariable.GlobalFont != null)
            {
                this.FontFamily = GlobalVariable.GlobalFont;                                   //设置字体
            }
            ID       = id;
            vieModel = new VieModel_Edit();

            if (ID == "")
            {
                vieModel.Reset();
            }
            else
            {
                vieModel.Query(ID);
            }
            this.DataContext = vieModel;

            this.Height = SystemParameters.PrimaryScreenHeight * 0.6;
            this.Width  = SystemParameters.PrimaryScreenHeight * 0.6 * 800 / 450;
        }