public StoreEditor() { InitializeComponent(); this.MinimumSize = this.Size; _store = new BitmapSearcherStore(); _TasksRunning = 0; _changed = false; }
private void createButton_Click(object sender, EventArgs e) { switch (AskAndSave()) { case SaveResult.Cancelled: return; default: _store = new BitmapSearcherStore(); _changed = false; return; } }
public ScreenGameShim(string storeFilename) { templatesStorage = BitmapSearcherStore.Load(storeFilename); }
private void ProcessLoad(string filename) { bool isLoaded = false; try { _store = BitmapSearcherStore.Load(filename); isLoaded = true; _changed = false; UpdateTemplateNamesListBox(); } catch (IOException e) { MessageBox.Show("Input/output error: " + e.Message, "Error"); } catch (Exception e) { ShowUnknownErrorExhortation(e); } finally { if (!isLoaded) { _store = new BitmapSearcherStore(); _changed = false; } } }
/// <exception cref="Sysem.IOException"></exception> public static BitmapSearcherStore Load(string path) { var store = new BitmapSearcherStore(); store.simpleStore = SimpleStoreActual.Load(path); return store; }