public WindowEdit(string id = "") { InitializeComponent(); ID = id; vieModel = new VieModel_Edit(); if (ID == "") { vieModel.Reset(); } else { vieModel.Query(ID); } this.DataContext = vieModel; }
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; }
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; }