//Dictionary<string, string[]> ItemEachLot; public ProjSelect(MainWindow parent) { InitializeComponent(); //Set lot hint lotHint.Content = "稳定性简便输入格式:\n批号+空格+条件(A/L/T)+月份\n例如:\n\"111AK L3\"相当于111AK(25*60,3M)\n\"111AK A6\"相当于111AK(40*75,6M)\n\"111AK T44\"相当于111AK(30*65,44M)"; var version = Assembly.GetExecutingAssembly().GetName().Version; Title = "序列表编辑器 " + version.Major + "." + version.Minor + "." + version.Revision; Parent = parent; if (!File.Exists(System.AppDomain.CurrentDomain.BaseDirectory + @"ds")) { MessageBox.Show("找不到数据库", "错误"); Hide(); return; } database = ConfigParser.ParseDrug(); config = ConfigParser.ParseConfig(); plateStyle100.IsChecked = true; plateStyle = PlateStyle.Normal; lblRT.IsEnabled = config[0]; uTime.IsEnabled = config[0]; SetTime.IsEnabled = config[0]; methodGrid.IsReadOnly = !config[0]; comboProj.Items.Clear(); database.Keys.ToList().ForEach(x => comboProj.Items.Add(x)); tip.Text = "1: 请务必确认SOP版本;当前版本仅支持单张序列表\n2: 稳定性样品请用小括号注明贮存条件,或使用简便格式\n3: CDN溶出度不得与其他项使用同一个序列表"; #region delete after 2 list done #endregion }
public Config(MainWindow parent, UserInfo ui) { Parent = parent; UI = ui; InitializeComponent(); users = ConfigParser.ParseUser(); userListGrid.ItemsSource = users; if (UI.Group != UserGroup.root) { userListGrid.IsReadOnly = true; S1.IsEnabled = false; S2.IsEnabled = false; S3.IsEnabled = false; btnSaveA.IsEnabled = false; btnSaveB.IsEnabled = false; btnReset.IsEnabled = false; btnAddUser.IsEnabled = false; } config = ConfigParser.ParseConfig(); S1.IsChecked = config[0]; S2.IsChecked = config[1]; S3.IsChecked = config[2]; }