private void regionMenu_Click(object sender, EventArgs e) { if (!LoadSave.threadRunning) { LoadSave.selectRegion(false); } }
private void exportMenu_Click(object sender, EventArgs e) { if (!LoadSave.threadRunning) { LoadSave.save(); } }
private void frmMain_Closing(object sender, FormClosingEventArgs e) { if (LoadSave.threadRunning) { LoadSave.killThread(); } }
private void openMenu_Click(object sender, EventArgs e) { if (LoadSave.threadRunning) { LoadSave.killThread(); } LoadSave.openFile(tools, this, height, mnuLoad, mnuStatus); }
private void height_ValueChanged(object sender, EventArgs e) { if (LoadSave.Init && !LoadSave.threadRunning && height.SelectedIndex != prevVal) { prevVal = height.SelectedIndex; Undo.clear(); LoadSave.changeLayer(false); } else if (height.SelectedIndex != prevVal) { height.SelectedIndex = prevVal; } }
public void updateImage() { LoadSave.startThread(RunThread.Update); }