private void cmdSliceOptions_Click(object sender, EventArgs e) { //frmSliceOptions m_frmsliceopt = new frmSliceOptions(); //m_frmsliceopt.Show(); frmSliceOptions m_frmsliceopt = new frmSliceOptions(ref UVDLPApp.Instance().m_buildparms); m_frmsliceopt.ShowDialog(); // will modal work here? }
private void cmdEdit_Click(object sender, EventArgs e) { if (lstSliceBuildProfiles.SelectedIndex != -1) { string fn = FNFromIndex(lstSliceBuildProfiles.SelectedIndex); if (fn != null) { SliceBuildConfig sbc = null; if (UVDLPApp.Instance().m_buildparms.m_filename.Equals(fn)) { sbc = UVDLPApp.Instance().m_buildparms; // current slicing profile } else { sbc = new SliceBuildConfig(); // existing but not current sbc.Load(fn); } frmSliceOptions m_frmsliceopt = new frmSliceOptions(ref sbc); m_frmsliceopt.ShowDialog(); } } }
private void cmdSliceOptions_Click(object sender, EventArgs e) { frmSliceOptions m_frmsliceopt = new frmSliceOptions(); m_frmsliceopt.Show(); }