protected void OnButtonInputClicked(object sender, EventArgs e) { if (InputDocsWin == null) { InputDocsWin = new InputDocs(); InputDocsWin.DeleteEvent += OnDeleteInputDocsEvent; Console.WriteLine("new"); } InputDocsWin.Maximize(); InputDocsWin.Show(); }
protected void OnDeleteInputDocsEvent(object s, DeleteEventArgs arg) { InputDocsWin.Destroy(); InputDocsWin = null; }
protected void OnButtonInputClicked(object sender, EventArgs e) { if(InputDocsWin == null) { InputDocsWin = new InputDocs(); InputDocsWin.DeleteEvent += OnDeleteInputDocsEvent; Console.WriteLine ("new"); } InputDocsWin.Maximize (); InputDocsWin.Show (); }
protected void OnDeleteInputDocsEvent( object s, DeleteEventArgs arg) { InputDocsWin.Destroy (); InputDocsWin = null; }