예제 #1
0
        private void SelectMethod(Label label, ref int method)
        {
            Debug.AssertNotNull(_options.MethodManager, "MethodManager not set");

            WipeMethods w = new WipeMethods();
            w.Options = _options;
            w.MethodManager = _options.MethodManager;
            w.SelectedMethod = _options.MethodManager.GetMethodIndex(method);
            w.ShowSelected = true;
            w.ShowDialog(this);

            if(w.SelectedMethod < 0 || w.SelectedMethod >= _options.MethodManager.Methods.Count) {
                method = WipeOptions.DefaultWipeMethod;
            }
            else {
                method = _options.MethodManager.Methods[w.SelectedMethod].Id;
            }

            UpdateMethodInfo(label, method);
        }
예제 #2
0
 private void wipeMethodsFormToolStripMenuItem_Click(object sender, EventArgs e)
 {
     WipeMethods f = new WipeMethods();
     f.ShowSelected = true;
     f.MethodManager = _options.MethodManager;
     f.Show(this);
 }