示例#1
0
 protected virtual void OnCustomBusActivated(object sender, System.EventArgs e)
 {
     CustomBusDialog d = new CustomBusDialog(this);
     d.ShowAll();
     if (d.Run() == (int)ResponseType.Ok) {
         if (!string.IsNullOrEmpty(d.RequestedBus))
             ReinitBus(new DBusExplorator(DBus.Bus.Open(d.RequestedBus)));
     }
     d.Destroy();
 }
示例#2
0
        protected virtual void OnCustomBusActivated(object sender, System.EventArgs e)
        {
            CustomBusDialog d = new CustomBusDialog(this);

            d.ShowAll();
            if (d.Run() == (int)ResponseType.Ok)
            {
                if (!string.IsNullOrEmpty(d.RequestedBus))
                {
                    ReinitBus(new DBusExplorator(DBus.Bus.Open(d.RequestedBus)));
                }
            }
            d.Destroy();
        }