static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var err = ""; ResController ctr = null; try { ctr = new ResController(); } catch (Exception e) { err = e.Message; } if (ctr != null) { Application.Run(new SuperEdit(ctr)); } else { MessageBox.Show("Init error " + err); Application.Exit(); } }
public PSView(string txt, ResController res) { InitializeComponent(); this.SetTopLevel(true); this.resController = res; txtPS.Text = txt; txtPS.Select(txtPS.TextLength, 0); }
public SuperEdit(ResController res) { this.res = res; this.objects = new BindingList <SelectObject>(); InitializeComponent(); this.KeyPreview = true; }
public Progress(ResController res) { InitializeComponent(); this.res = res; }