public BaseClass() { ConectionWorked = TheDatabase.ConnectioDB(); Login = new OnlyForLogin(); Login_Command = new Command(Login_Action); Create_Comand_Panel = new Command(Create_Panel); Back_Login = new Command(Back_to_Login); Tabel_Comand_Panel = new Command(Tabel_Panel); SelectTime__Command_Panel = new Command(SelecTime_Panel); Back_SelectFood_SelectTime = new Command(Back_to_SelectFood_SelectTime); Back_SelectFood_Tabel = new Command(Back_to_SelectFood_Tabel); Logout_Reset = new Command(Logout); Visibility_Proprety_OC = new ObservableCollection <Visibility>(); Select_Food = new SelectingFood(); for (int i = 0; i < 5; i++) { if (i == 0) { Visibility_Proprety_OC.Add(new Visibility() { Vib = Visiby }); } Visibility_Proprety_OC.Add(new Visibility() { Vib = Collapse }); } }
public void Logout() { Login = new OnlyForLogin(); onepropretychanged("Login"); Visibility_Proprety_OC[0].Vib = Visiby; Visibility_Proprety_OC[2].Vib = Collapse; }