//load table data private void initTableData() { if (!ReadWriteData.checkTableSizeFileExist()) { ReadWriteData.writeTableSize("30-30"); } if (!ReadWriteData.checkTableImagePathFileExist()) { ReadWriteData.writeTableImagePath(startupProjectPath + "\\Images\\3dmap.png"); } initBackgroundTable(ReadWriteData.readTableImagePath()); currentTableList = _unitofwork.TableRepository.Get().ToList(); readTableData(); }
private void btnApply_Click(object sender, RoutedEventArgs e) { if (recDemo.Width < 10 || recDemo.Height < 10) { MessageBox.Show("Width and Height must be greater than 10 and lesser than 150!"); return; } ReadWriteData.writeTableSize(recDemo.Width + "-" + recDemo.Height); MessageBoxResult messRe = MessageBox.Show("You must be logout and login again for take effect about this change! Logout now?", "Warning!", MessageBoxButton.YesNo); if (messRe == MessageBoxResult.Yes) { ((MainWindow)Window.GetWindow(this)).Close(); Login log = new Login(); log.Show(); } btnApply.Background = Brushes.Orange; }