protected virtual void OnPropertiesClicked(object sender, System.EventArgs e)
	{
		object cur = addressview.GetCurrentObject();
		if (cur == null)
			return;
		if (cur is Address) {
			na = (Address) cur;
			NewAddress dlg = new NewAddress (na);
			dlg.Run();
			dlg = null;
		}
		else {
			ng = (AddressGroup) cur;
			NewGroup dlg = new NewGroup (ng);
			dlg.Run();
			dlg = null;
		}
	} 
	protected virtual void OnNewgroupClicked(object sender, System.EventArgs e)
	{
		ng = new AddressGroup("untitled");
		NewGroup dlg = new NewGroup (ng);
		dlg.Run();
		list.Add (ng);
		dlg = null;
	}
예제 #3
0
    protected virtual void OnNewgroupClicked(object sender, System.EventArgs e)
    {
        ng = new AddressGroup("untitled");
        NewGroup dlg = new NewGroup(ng);

        dlg.Run();
        list.Add(ng);
        dlg = null;
    }
예제 #4
0
    protected virtual void OnPropertiesClicked(object sender, System.EventArgs e)
    {
        object cur = addressview.GetCurrentObject();

        if (cur == null)
        {
            return;
        }
        if (cur is Address)
        {
            na = (Address)cur;
            NewAddress dlg = new NewAddress(na);
            dlg.Run();
            dlg = null;
        }
        else
        {
            ng = (AddressGroup)cur;
            NewGroup dlg = new NewGroup(ng);
            dlg.Run();
            dlg = null;
        }
    }