Exemplo n.º 1
0
    protected void OnTreeview1RowActivated(object o, RowActivatedArgs args)
    {
        if (args.Path.Indices.Length == 1)
        {
            int index = args.Path.Indices [0];
            using (MaxbukAdmin.EditDialog frm = new MaxbukAdmin.EditDialog(_disks[index])) {
                frm.TransientFor = this;
                frm.Modal        = true;
                frm.SetPosition(WindowPosition.CenterOnParent);
                frm.ShowAll();

                ResponseType response = (ResponseType)frm.Run();
            }
        }
        //throw new NotImplementedException ();
    }
Exemplo n.º 2
0
    protected void OnTreeview1RowActivated(object o, RowActivatedArgs args)
    {
        if (args.Path.Indices.Length == 1) {
            int index = args.Path.Indices [0];
            using (MaxbukAdmin.EditDialog frm = new MaxbukAdmin.EditDialog (_disks[index])) {
                frm.TransientFor = this;
                frm.Modal = true;
                frm.SetPosition(WindowPosition.CenterOnParent);
                frm.ShowAll ();

                ResponseType response = (ResponseType)frm.Run ();

            }

        }
        //throw new NotImplementedException ();
    }